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 new() -> Self
pub fn new() -> Self
Create a new FontDialogBuilder
.
sourcepub fn build(self) -> FontDialog
pub fn build(self) -> FontDialog
Build the FontDialog
.
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: &str) -> Self
pub fn title(self, title: &str) -> Self
A title that may be shown on the font chooser
dialog that is presented by FontDialog::choose_font()
.
Trait Implementations§
source§impl Clone for FontDialogBuilder
impl Clone for FontDialogBuilder
source§fn clone(&self) -> FontDialogBuilder
fn clone(&self) -> FontDialogBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for FontDialogBuilder
impl Default for FontDialogBuilder
source§fn default() -> FontDialogBuilder
fn default() -> FontDialogBuilder
Returns the “default value” for a type. Read more