FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBlockProps

    trait · ferroui-view · v0.5.0

    trait TextBlockProps: ElementBuilder
    

    The properties and routed events of TextBlock.

    View source

    Members

    background

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

    Sets TextBlock::background_property.

    Source

    padding

    fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
    

    Sets TextBlock::padding_property.

    Source

    font_family

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

    Sets TextBlock::font_family_property.

    Source

    font_size

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

    Sets TextBlock::font_size_property.

    Source

    font_style

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

    Sets TextBlock::font_style_property.

    Source

    font_weight

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

    Sets TextBlock::font_weight_property.

    Source

    font_stretch

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

    Sets TextBlock::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 TextBlock::foreground_property.

    Source

    baseline_offset

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

    Sets TextBlock::baseline_offset_property.

    Source

    text_line_bounds

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

    Sets TextBlock::text_line_bounds_property.

    Source

    layout_rounding_placement

    fn layout_rounding_placement<M>(self: Self, value: impl IntoProp<ferroui_controls::TextLayoutRoundingPlacement, M>) -> Self
    

    Sets TextBlock::layout_rounding_placement_property.

    Source

    line_height

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

    Sets TextBlock::line_height_property.

    Source

    line_spacing

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

    Sets TextBlock::line_spacing_property.

    Source

    letter_spacing

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

    Sets TextBlock::letter_spacing_property.

    Source

    max_lines

    fn max_lines<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
    

    Sets TextBlock::max_lines_property.

    Source

    text

    fn text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
    

    Sets TextBlock::text_property.

    Source

    text_alignment

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

    Sets TextBlock::text_alignment_property.

    Source

    text_wrapping

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

    Sets TextBlock::text_wrapping_property.

    Source

    text_trimming

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

    Sets TextBlock::text_trimming_property.

    Source

    text_decorations

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

    Sets TextBlock::text_decorations_property.

    Source

    font_features

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

    Sets TextBlock::font_features_property.

    Source

    inlines

    fn inlines<M>(self: Self, value: impl IntoProp<Option<ferroui_controls::documents::InlineCollection>, M>) -> Self
    

    Sets TextBlock::inlines_property.

    Source

    Trait implementations

    Availability

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