FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableTextDecoration

    struct · ferroui-base · v0.5.0

    struct ImmutableTextDecoration
    

    An immutable representation of a text decoration.

    View source

    Members

    new

    fn new(location: TextDecorationLocation, pen: ImmutablePen, pen_thickness_unit: TextDecorationUnit, pen_offset: f64, pen_offset_unit: TextDecorationUnit) -> ImmutableTextDecoration
    

    Creates a text decoration.

    Source

    location

    fn location(self: &Self) -> TextDecorationLocation
    

    Gets the location.

    Source

    pen

    fn pen(self: &Self) -> &ImmutablePen
    

    Gets the pen.

    Source

    pen_thickness_unit

    fn pen_thickness_unit(self: &Self) -> TextDecorationUnit
    

    Gets the units in which the thickness of the pen is expressed.

    Source

    pen_offset

    fn pen_offset(self: &Self) -> f64
    

    Gets the pen offset.

    Source

    pen_offset_unit

    fn pen_offset_unit(self: &Self) -> TextDecorationUnit
    

    Gets the units in which the pen offset is expressed.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug

    Availability

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