Trait FontChooserExt

Source
pub trait FontChooserExt: 'static {
Show 19 methods // Required methods fn get_font(&self) -> Option<GString>; fn get_font_desc(&self) -> Option<FontDescription>; fn get_font_face(&self) -> Option<FontFace>; fn get_font_family(&self) -> Option<FontFamily>; fn get_font_map(&self) -> Option<FontMap>; fn get_font_size(&self) -> i32; fn get_preview_text(&self) -> Option<GString>; fn get_show_preview_entry(&self) -> bool; fn set_filter_func( &self, filter: Option<Box<dyn Fn(&FontFamily, &FontFace) -> bool + 'static>>, ); fn set_font(&self, fontname: &str); fn set_font_desc(&self, font_desc: &FontDescription); fn set_font_map<P: IsA<FontMap>>(&self, fontmap: Option<&P>); fn set_preview_text(&self, text: &str); fn set_show_preview_entry(&self, show_preview_entry: bool); fn connect_font_activated<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_font_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_font_desc_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_preview_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_preview_entry_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_font(&self) -> Option<GString>

Source

fn get_font_desc(&self) -> Option<FontDescription>

Source

fn get_font_face(&self) -> Option<FontFace>

Source

fn get_font_family(&self) -> Option<FontFamily>

Source

fn get_font_map(&self) -> Option<FontMap>

Source

fn get_font_size(&self) -> i32

Source

fn get_preview_text(&self) -> Option<GString>

Source

fn get_show_preview_entry(&self) -> bool

Source

fn set_filter_func( &self, filter: Option<Box<dyn Fn(&FontFamily, &FontFace) -> bool + 'static>>, )

Source

fn set_font(&self, fontname: &str)

Source

fn set_font_desc(&self, font_desc: &FontDescription)

Source

fn set_font_map<P: IsA<FontMap>>(&self, fontmap: Option<&P>)

Source

fn set_preview_text(&self, text: &str)

Source

fn set_show_preview_entry(&self, show_preview_entry: bool)

Source

fn connect_font_activated<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_font_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_font_desc_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_preview_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_show_preview_entry_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§