pub trait TextElementProps: ElementBuilder {
// Provided methods
fn background<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn font_family<M>(self, value: impl IntoProp<FontFamily, M>) -> Self { ... }
fn font_features<M>(
self,
value: impl IntoProp<Option<FontFeatureCollection>, 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 letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
}Expand description
The properties and routed events of TextElement.
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_features<M>(
self,
value: impl IntoProp<Option<FontFeatureCollection>, M>,
) -> Self
fn font_features<M>( self, value: impl IntoProp<Option<FontFeatureCollection>, 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 letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
fn letter_spacing<M>(self, value: impl IntoProp<f64, M>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".