pub trait TextBlockProps: ElementBuilder {
Show 21 methods
// Provided methods
fn background<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn padding<M>(self, value: impl IntoProp<Thickness, M>) -> Self { ... }
fn font_family<M>(self, value: impl IntoProp<FontFamily, M>) -> Self { ... }
fn font_size<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn font_style<M>(self, value: impl IntoProp<FontStyle, M>) -> Self { ... }
fn font_weight<M>(self, value: impl IntoProp<FontWeight, M>) -> Self { ... }
fn font_stretch<M>(self, value: impl IntoProp<FontStretch, M>) -> Self { ... }
fn foreground<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn baseline_offset<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn layout_rounding_placement<M>(
self,
value: impl IntoProp<TextLayoutRoundingPlacement, M>,
) -> Self { ... }
fn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn line_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn max_lines<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self { ... }
fn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self { ... }
fn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self { ... }
fn text_trimming<M>(
self,
value: impl IntoProp<Rc<dyn TextTrimming>, M>,
) -> Self { ... }
fn text_decorations<M>(
self,
value: impl IntoProp<Option<TextDecorationCollection>, M>,
) -> Self { ... }
fn font_features<M>(
self,
value: impl IntoProp<Option<FontFeatureCollection>, M>,
) -> Self { ... }
fn inlines<M>(
self,
value: impl IntoProp<Option<InlineCollection>, M>,
) -> Self { ... }
}Expand description
The properties and routed events of TextBlock.
Provided Methods§
Sourcefn font_family<M>(self, value: impl IntoProp<FontFamily, M>) -> Self
fn font_family<M>(self, value: impl IntoProp<FontFamily, M>) -> Self
Sourcefn font_style<M>(self, value: impl IntoProp<FontStyle, M>) -> Self
fn font_style<M>(self, value: impl IntoProp<FontStyle, M>) -> Self
Sourcefn font_weight<M>(self, value: impl IntoProp<FontWeight, M>) -> Self
fn font_weight<M>(self, value: impl IntoProp<FontWeight, M>) -> Self
Sourcefn font_stretch<M>(self, value: impl IntoProp<FontStretch, M>) -> Self
fn font_stretch<M>(self, value: impl IntoProp<FontStretch, M>) -> Self
Sourcefn baseline_offset<M>(self, value: impl IntoProp<f64, M>) -> Self
fn baseline_offset<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn layout_rounding_placement<M>(
self,
value: impl IntoProp<TextLayoutRoundingPlacement, M>,
) -> Self
fn layout_rounding_placement<M>( self, value: impl IntoProp<TextLayoutRoundingPlacement, M>, ) -> Self
Sourcefn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self
fn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn line_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
fn line_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
fn letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
fn text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
Sets TextBlock::text_property.
Sourcefn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self
fn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self
Sourcefn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self
fn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self
Sourcefn text_trimming<M>(self, value: impl IntoProp<Rc<dyn TextTrimming>, M>) -> Self
fn text_trimming<M>(self, value: impl IntoProp<Rc<dyn TextTrimming>, M>) -> Self
Sourcefn text_decorations<M>(
self,
value: impl IntoProp<Option<TextDecorationCollection>, M>,
) -> Self
fn text_decorations<M>( self, value: impl IntoProp<Option<TextDecorationCollection>, M>, ) -> Self
Sourcefn font_features<M>(
self,
value: impl IntoProp<Option<FontFeatureCollection>, M>,
) -> Self
fn font_features<M>( self, value: impl IntoProp<Option<FontFeatureCollection>, M>, ) -> Self
Sourcefn inlines<M>(self, value: impl IntoProp<Option<InlineCollection>, M>) -> Self
fn inlines<M>(self, value: impl IntoProp<Option<InlineCollection>, M>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".