FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextDecoration

    struct · ferroui-base · v0.5.0

    struct TextDecoration
    

    Represents a text decoration, which is a visual ornamentation that is added to text (such as an underline).

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TextDecoration>
    

    Returns a strong reference to this object.

    Source

    location_property

    fn location_property() -> &'static StyledProperty<TextDecorationLocation>
    

    Defines the Location property.

    Source

    stroke_property

    fn stroke_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the Stroke property.

    Source

    stroke_thickness_unit_property

    fn stroke_thickness_unit_property() -> &'static StyledProperty<TextDecorationUnit>
    

    Defines the StrokeThicknessUnit property.

    Source

    stroke_dash_array_property

    fn stroke_dash_array_property() -> &'static StyledProperty<Option<MediaCollection<f64>>>
    

    Defines the StrokeDashArray property.

    Source

    stroke_dash_offset_property

    fn stroke_dash_offset_property() -> &'static StyledProperty<f64>
    

    Defines the StrokeDashOffset property.

    Source

    stroke_thickness_property

    fn stroke_thickness_property() -> &'static StyledProperty<f64>
    

    Defines the StrokeThickness property.

    Source

    stroke_line_cap_property

    fn stroke_line_cap_property() -> &'static StyledProperty<PenLineCap>
    

    Defines the StrokeLineCap property.

    Source

    stroke_offset_property

    fn stroke_offset_property() -> &'static StyledProperty<f64>
    

    Defines the StrokeOffset property.

    Source

    stroke_offset_unit_property

    fn stroke_offset_unit_property() -> &'static StyledProperty<TextDecorationUnit>
    

    Defines the StrokeOffsetUnit property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a text decoration with default values (an underline).

    Source

    location

    fn location(self: &Self) -> TextDecorationLocation
    

    Gets the location.

    Source

    set_location

    fn set_location(self: &Self, value: TextDecorationLocation)
    

    Sets the location.

    Source

    stroke

    fn stroke(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets the brush that specifies how the text decoration is painted.

    Source

    set_stroke

    fn set_stroke(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Sets the brush that specifies how the text decoration is painted.

    Source

    stroke_thickness_unit

    fn stroke_thickness_unit(self: &Self) -> TextDecorationUnit
    

    Gets the units in which the thickness of the text decoration is expressed.

    Source

    set_stroke_thickness_unit

    fn set_stroke_thickness_unit(self: &Self, value: TextDecorationUnit)
    

    Sets the units in which the thickness of the text decoration is expressed.

    Source

    stroke_dash_array

    fn stroke_dash_array(self: &Self) -> Option<MediaCollection<f64>>
    

    Gets a collection of values that indicate the pattern of dashes and gaps that is used to draw the text decoration.

    Source

    set_stroke_dash_array

    fn set_stroke_dash_array(self: &Self, value: Option<MediaCollection<f64>>)
    

    Sets a collection of values that indicate the pattern of dashes and gaps that is used to draw the text decoration.

    Source

    stroke_dash_offset

    fn stroke_dash_offset(self: &Self) -> f64
    

    Gets a value that specifies the distance within the dash pattern where a dash begins.

    Source

    set_stroke_dash_offset

    fn set_stroke_dash_offset(self: &Self, value: f64)
    

    Sets a value that specifies the distance within the dash pattern where a dash begins.

    Source

    stroke_thickness

    fn stroke_thickness(self: &Self) -> f64
    

    Gets the thickness of the text decoration.

    Source

    set_stroke_thickness

    fn set_stroke_thickness(self: &Self, value: f64)
    

    Sets the thickness of the text decoration.

    Source

    stroke_line_cap

    fn stroke_line_cap(self: &Self) -> PenLineCap
    

    Gets a value that describes the shape at the ends of a line.

    Source

    set_stroke_line_cap

    fn set_stroke_line_cap(self: &Self, value: PenLineCap)
    

    Sets a value that describes the shape at the ends of a line.

    Source

    stroke_offset

    fn stroke_offset(self: &Self) -> f64
    

    The stroke's offset.

    Source

    set_stroke_offset

    fn set_stroke_offset(self: &Self, value: f64)
    

    Sets the stroke's offset.

    Source

    stroke_offset_unit

    fn stroke_offset_unit(self: &Self) -> TextDecorationUnit
    

    Gets the units in which the offset value is expressed.

    Source

    set_stroke_offset_unit

    fn set_stroke_offset_unit(self: &Self, value: TextDecorationUnit)
    

    Sets the units in which the offset value is expressed.

    Source

    Trait implementations

    Availability

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