FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextOptions

    struct · ferroui-base · v0.5.0

    struct TextOptions
    

    Provides options for controlling text rendering and hinting.

    View source

    Members

    text_rendering_mode

    text_rendering_mode: crate::media::TextRenderingMode
    

    Gets the text rendering mode.

    Source

    text_hinting_mode

    text_hinting_mode: crate::media::TextHintingMode
    

    Gets the text hinting mode.

    Source

    baseline_pixel_alignment

    baseline_pixel_alignment: crate::media::BaselinePixelAlignment
    

    Gets a value indicating whether the text baseline should be aligned to the pixel grid.

    Source

    merge_with

    fn merge_with(self: &Self, other: TextOptions) -> TextOptions
    

    Merges this instance with other: every unspecified value of self is taken from other.

    Source

    get_text_options

    fn get_text_options(visual: &Visual) -> TextOptions
    

    Gets the text options of a visual.

    Source

    set_text_options

    fn set_text_options(visual: &Visual, value: TextOptions)
    

    Sets the text options of a visual.

    Source

    get_text_rendering_mode

    fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
    

    Gets the value of the TextRenderingMode text option for a visual.

    Source

    set_text_rendering_mode

    fn set_text_rendering_mode(visual: &Visual, value: TextRenderingMode)
    

    Sets the value of the TextRenderingMode text option for a visual.

    Source

    get_text_hinting_mode

    fn get_text_hinting_mode(visual: &Visual) -> TextHintingMode
    

    Gets the value of the TextHintingMode text option for a visual.

    Source

    set_text_hinting_mode

    fn set_text_hinting_mode(visual: &Visual, value: TextHintingMode)
    

    Sets the value of the TextHintingMode text option for a visual.

    Source

    get_baseline_pixel_alignment

    fn get_baseline_pixel_alignment(visual: &Visual) -> BaselinePixelAlignment
    

    Gets the value of the BaselinePixelAlignment text option for a visual.

    Source

    set_baseline_pixel_alignment

    fn set_baseline_pixel_alignment(visual: &Visual, value: BaselinePixelAlignment)
    

    Sets the value of the BaselinePixelAlignment text option for a visual.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • ServerPropertyValue
    • BatchValue

    Availability

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