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
Sets 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
Sets 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
.
Auto Trait Implementations§
impl Freeze for FontDialogBuilder
impl RefUnwindSafe for FontDialogBuilder
impl !Send for FontDialogBuilder
impl !Sync for FontDialogBuilder
impl Unpin for FontDialogBuilder
impl UnwindSafe for FontDialogBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more