pub struct FontDialogBuilder { /* private fields */ }Available on crate feature
v4_10 only.Expand description
A builder-pattern type to construct FontDialog objects.
Implementations§
Source§impl FontDialogBuilder
impl FontDialogBuilder
Sourcepub fn filter(self, filter: &impl IsA<Filter>) -> Self
pub fn filter(self, filter: &impl IsA<Filter>) -> Self
A filter to restrict what fonts are shown in the font chooser dialog.
Sourcepub fn font_map(self, font_map: &impl IsA<FontMap>) -> Self
pub fn font_map(self, font_map: &impl IsA<FontMap>) -> Self
A custom font map to select fonts from.
A custom font map can be used to present application-specific fonts instead of or in addition to the normal system fonts.
Sourcepub fn language(self, language: &Language) -> Self
pub fn language(self, language: &Language) -> Self
The language for which the font features are selected.
Sourcepub fn title(self, title: impl Into<GString>) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
A title that may be shown on the font chooser
dialog that is presented by FontDialog::choose_font().
Sourcepub fn build(self) -> FontDialog
pub fn build(self) -> FontDialog
Build the FontDialog.