FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextElementProps

    trait · ferroui-view · v0.5.0

    trait TextElementProps: ElementBuilder
    

    The properties and routed events of TextElement.

    View source

    Members

    language

    fn language<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::Locale, M>) -> Self
    

    Sets TextElement::language_property.

    Source

    background

    fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets TextElement::background_property.

    Source

    font_family

    fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
    

    Sets TextElement::font_family_property.

    Source

    font_features

    fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
    

    Sets TextElement::font_features_property.

    Source

    font_size

    fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
    

    Sets TextElement::font_size_property.

    Source

    font_style

    fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
    

    Sets TextElement::font_style_property.

    Source

    font_weight

    fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
    

    Sets TextElement::font_weight_property.

    Source

    font_stretch

    fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
    

    Sets TextElement::font_stretch_property.

    Source

    foreground

    fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets TextElement::foreground_property.

    Source

    letter_spacing

    fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
    

    Sets TextElement::letter_spacing_property.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.