Struct gtk4::builders::FontDialogBuilder
source · 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