gtk/auto/
misc.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use glib::translate::*;
6use gtk_sys;
7use std::fmt;
8use Buildable;
9use Widget;
10
11glib_wrapper! {
12    pub struct Misc(Object<gtk_sys::GtkMisc, gtk_sys::GtkMiscClass, MiscClass>) @extends Widget, @implements Buildable;
13
14    match fn {
15        get_type => || gtk_sys::gtk_misc_get_type(),
16    }
17}
18
19impl Misc {}
20
21pub const NONE_MISC: Option<&Misc> = None;
22
23impl fmt::Display for Misc {
24    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
25        write!(f, "Misc")
26    }
27}