#[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 ==.impl StructuralPartialEq for FontConfigurationBuilder
Auto Trait Implementations§
impl Freeze for FontConfigurationBuilder
impl RefUnwindSafe for FontConfigurationBuilder
impl Send for FontConfigurationBuilder
impl Sync for FontConfigurationBuilder
impl Unpin for FontConfigurationBuilder
impl UnwindSafe for FontConfigurationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more