#[non_exhaustive]pub struct FontConfigurationBuilder { /* private fields */ }
Expand description
A builder for FontConfiguration
.
Implementations§
source§impl FontConfigurationBuilder
impl FontConfigurationBuilder
sourcepub fn font_size(self, input: FontSize) -> Self
pub fn font_size(self, input: FontSize) -> Self
The option that determines the text display size.
sourcepub fn set_font_size(self, input: Option<FontSize>) -> Self
pub fn set_font_size(self, input: Option<FontSize>) -> Self
The option that determines the text display size.
sourcepub fn get_font_size(&self) -> &Option<FontSize>
pub fn get_font_size(&self) -> &Option<FontSize>
The option that determines the text display size.
sourcepub fn font_decoration(self, input: FontDecoration) -> Self
pub fn font_decoration(self, input: FontDecoration) -> Self
Determines the appearance of decorative lines on the text.
sourcepub fn set_font_decoration(self, input: Option<FontDecoration>) -> Self
pub fn set_font_decoration(self, input: Option<FontDecoration>) -> Self
Determines the appearance of decorative lines on the text.
sourcepub fn get_font_decoration(&self) -> &Option<FontDecoration>
pub fn get_font_decoration(&self) -> &Option<FontDecoration>
Determines the appearance of decorative lines on the text.
sourcepub fn font_color(self, input: impl Into<String>) -> Self
pub fn font_color(self, input: impl Into<String>) -> Self
Determines the color of the text.
sourcepub fn set_font_color(self, input: Option<String>) -> Self
pub fn set_font_color(self, input: Option<String>) -> Self
Determines the color of the text.
sourcepub fn get_font_color(&self) -> &Option<String>
pub fn get_font_color(&self) -> &Option<String>
Determines the color of the text.
sourcepub fn font_weight(self, input: FontWeight) -> Self
pub fn font_weight(self, input: FontWeight) -> Self
The option that determines the text display weight, or boldness.
sourcepub fn set_font_weight(self, input: Option<FontWeight>) -> Self
pub fn set_font_weight(self, input: Option<FontWeight>) -> Self
The option that determines the text display weight, or boldness.
sourcepub fn get_font_weight(&self) -> &Option<FontWeight>
pub fn get_font_weight(&self) -> &Option<FontWeight>
The option that determines the text display weight, or boldness.
sourcepub fn font_style(self, input: FontStyle) -> Self
pub fn font_style(self, input: FontStyle) -> Self
Determines the text display face that is inherited by the given font family.
sourcepub fn set_font_style(self, input: Option<FontStyle>) -> Self
pub fn set_font_style(self, input: Option<FontStyle>) -> Self
Determines the text display face that is inherited by the given font family.
sourcepub fn get_font_style(&self) -> &Option<FontStyle>
pub fn get_font_style(&self) -> &Option<FontStyle>
Determines the text display face that is inherited by the given font family.
sourcepub fn build(self) -> FontConfiguration
pub fn build(self) -> FontConfiguration
Consumes the builder and constructs a FontConfiguration
.
Trait Implementations§
source§impl Clone for FontConfigurationBuilder
impl Clone for FontConfigurationBuilder
source§fn clone(&self) -> FontConfigurationBuilder
fn clone(&self) -> FontConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FontConfigurationBuilder
impl Debug for FontConfigurationBuilder
source§impl Default for FontConfigurationBuilder
impl Default for FontConfigurationBuilder
source§fn default() -> FontConfigurationBuilder
fn default() -> FontConfigurationBuilder
source§impl PartialEq for FontConfigurationBuilder
impl PartialEq for FontConfigurationBuilder
source§fn eq(&self, other: &FontConfigurationBuilder) -> bool
fn eq(&self, other: &FontConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.