TextBlockProps
trait · ferroui-view · v0.5.0
trait TextBlockProps: ElementBuilder
The properties and routed events of TextBlock.
Members
backgroundpaddingfont_familyfont_sizefont_stylefont_weightfont_stretchforegroundbaseline_offsettext_line_boundslayout_rounding_placementline_heightline_spacingletter_spacingmax_linestexttext_alignmenttext_wrappingtext_trimmingtext_decorationsfont_featuresinlines
background
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBlock::background_property.
padding
fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
Sets TextBlock::padding_property.
font_family
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
Sets TextBlock::font_family_property.
font_size
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBlock::font_size_property.
font_style
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
Sets TextBlock::font_style_property.
font_weight
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
Sets TextBlock::font_weight_property.
font_stretch
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
Sets TextBlock::font_stretch_property.
foreground
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBlock::foreground_property.
baseline_offset
fn baseline_offset<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBlock::baseline_offset_property.
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.
layout_rounding_placement
fn layout_rounding_placement<M>(self: Self, value: impl IntoProp<ferroui_controls::TextLayoutRoundingPlacement, M>) -> Self
Sets TextBlock::layout_rounding_placement_property.
line_height
fn line_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBlock::line_height_property.
line_spacing
fn line_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBlock::line_spacing_property.
letter_spacing
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBlock::letter_spacing_property.
max_lines
fn max_lines<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBlock::max_lines_property.
text
fn text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets TextBlock::text_property.
text_alignment
fn text_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextAlignment, M>) -> Self
Sets TextBlock::text_alignment_property.
text_wrapping
fn text_wrapping<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextWrapping, M>) -> Self
Sets TextBlock::text_wrapping_property.
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.
text_decorations
fn text_decorations<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::TextDecorationCollection>, M>) -> Self
Sets TextBlock::text_decorations_property.
font_features
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
Sets TextBlock::font_features_property.
inlines
fn inlines<M>(self: Self, value: impl IntoProp<Option<ferroui_controls::documents::InlineCollection>, M>) -> Self
Sets TextBlock::inlines_property.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.