FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextDecorationUnit

    enum · ferroui-base · v0.5.0

    enum TextDecorationUnit
    

    Specifies the unit type of either a text decoration offset or thickness value.

    View source

    Members

    FontRecommended

    FontRecommended
    

    A unit value that is relative to the font used for the text decoration. If the decoration spans multiple fonts, an average recommended value is calculated. This is the default value.

    Source

    FontRenderingEmSize

    FontRenderingEmSize
    

    A unit value that is relative to the em size of the font. The value of the offset or thickness is equal to the offset or thickness value multiplied by the font em size.

    Source

    Pixel

    Pixel
    

    A unit value that is expressed in pixels.

    Source

    Trait implementations

    Availability

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