TextElementProps
trait · ferroui-view · v0.5.0
trait TextElementProps: ElementBuilder
The properties and routed events of TextElement.
Members
languagebackgroundfont_familyfont_featuresfont_sizefont_stylefont_weightfont_stretchforegroundletter_spacing
language
fn language<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::Locale, M>) -> Self
Sets TextElement::language_property.
background
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextElement::background_property.
font_family
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
Sets TextElement::font_family_property.
font_features
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
Sets TextElement::font_features_property.
font_size
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextElement::font_size_property.
font_style
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
Sets TextElement::font_style_property.
font_weight
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
Sets TextElement::font_weight_property.
font_stretch
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
Sets TextElement::font_stretch_property.
foreground
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextElement::foreground_property.
letter_spacing
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextElement::letter_spacing_property.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.