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 glib::translate::*; 6 use gtk; 7 use gtk_source_sys; 8 use std::fmt; 9 10 glib_wrapper! { 11 pub struct CompletionInfo(Object<gtk_source_sys::GtkSourceCompletionInfo, gtk_source_sys::GtkSourceCompletionInfoClass, CompletionInfoClass>) @extends gtk::Window, gtk::Bin, gtk::Container, gtk::Widget; 12 13 match fn { 14 get_type => || gtk_source_sys::gtk_source_completion_info_get_type(), 15 } 16 } 17 18 impl CompletionInfo { new() -> CompletionInfo19 pub fn new() -> CompletionInfo { 20 assert_initialized_main_thread!(); 21 unsafe { 22 from_glib_none(gtk_source_sys::gtk_source_completion_info_new()) 23 } 24 } 25 } 26 27 impl Default for CompletionInfo { default() -> Self28 fn default() -> Self { 29 Self::new() 30 } 31 } 32 33 pub const NONE_COMPLETION_INFO: Option<&CompletionInfo> = None; 34 35 impl fmt::Display for CompletionInfo { fmt(&self, f: &mut fmt::Formatter) -> fmt::Result36 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 37 write!(f, "CompletionInfo") 38 } 39 } 40