Trait gtk::prelude::FontChooserExt [−][src]
pub trait FontChooserExt: 'static {
Show 27 methods
fn font(&self) -> Option<GString>;
fn font_desc(&self) -> Option<FontDescription>;
fn font_face(&self) -> Option<FontFace>;
fn font_family(&self) -> Option<FontFamily>;
fn font_features(&self) -> Option<GString>;
fn font_map(&self) -> Option<FontMap>;
fn font_size(&self) -> i32;
fn language(&self) -> Option<GString>;
fn level(&self) -> FontChooserLevel;
fn preview_text(&self) -> Option<GString>;
fn shows_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_language(&self, language: &str);
fn set_level(&self, level: FontChooserLevel);
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_font_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_font_desc_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_font_features_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_language_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_level_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_preview_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_show_preview_entry_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required methods
fn font_desc(&self) -> Option<FontDescription>
fn font_family(&self) -> Option<FontFamily>
fn font_features(&self) -> Option<GString>
fn font_features(&self) -> Option<GString>
This is supported on crate feature
v3_24
only.fn level(&self) -> FontChooserLevel
fn level(&self) -> FontChooserLevel
This is supported on crate feature
v3_24
only.fn preview_text(&self) -> Option<GString>
fn shows_preview_entry(&self) -> bool
fn set_filter_func(
&self,
filter: Option<Box_<dyn Fn(&FontFamily, &FontFace) -> bool + 'static>>
)
fn set_font_desc(&self, font_desc: &FontDescription)
fn set_language(&self, language: &str)
fn set_language(&self, language: &str)
This is supported on crate feature
v3_24
only.fn set_level(&self, level: FontChooserLevel)
fn set_level(&self, level: FontChooserLevel)
This is supported on crate feature
v3_24
only.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_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_font_desc_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_font_features_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_font_features_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_24
only.fn connect_language_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_language_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_24
only.fn connect_level_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_level_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This is supported on crate feature
v3_24
only.