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 5 use crate::Buildable; 6 use crate::Widget; 7 use std::fmt; 8 9 glib::wrapper! { 10 #[doc(alias = "GtkMisc")] 11 pub struct Misc(Object<ffi::GtkMisc, ffi::GtkMiscClass>) @extends Widget, @implements Buildable; 12 13 match fn { 14 type_ => || ffi::gtk_misc_get_type(), 15 } 16 } 17 18 impl Misc {} 19 20 pub const NONE_MISC: Option<&Misc> = None; 21 22 impl fmt::Display for Misc { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result23 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 24 f.write_str("Misc") 25 } 26 } 27