FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RenderOptions

    struct · ferroui-base · v0.5.0

    struct RenderOptions
    

    Provides a set of options that control rendering behavior for visuals, including text rendering, bitmap interpolation, edge rendering, blending, and opacity handling.

    View source

    Members

    text_rendering_mode

    text_rendering_mode: crate::media::TextRenderingMode
    

    The text rendering mode. Superseded by the text options.

    Source

    bitmap_interpolation_mode

    bitmap_interpolation_mode: crate::media::imaging::BitmapInterpolationMode
    

    The interpolation mode used when rendering bitmap images.

    Source

    edge_mode

    edge_mode: crate::media::EdgeMode
    

    The edge rendering mode for non-text primitives.

    Source

    bitmap_blending_mode

    bitmap_blending_mode: crate::media::imaging::BitmapBlendingMode
    

    The blending mode used when rendering bitmap images.

    Source

    requires_full_opacity_handling

    requires_full_opacity_handling: Option<bool>
    

    Whether full opacity handling is required for the associated content.

    Source

    get_bitmap_interpolation_mode

    fn get_bitmap_interpolation_mode(visual: &Visual) -> BitmapInterpolationMode
    

    Gets the value of the BitmapInterpolationMode render option for a visual.

    Source

    set_bitmap_interpolation_mode

    fn set_bitmap_interpolation_mode(visual: &Visual, value: BitmapInterpolationMode)
    

    Sets the value of the BitmapInterpolationMode render option for a visual.

    Source

    get_bitmap_blending_mode

    fn get_bitmap_blending_mode(visual: &Visual) -> BitmapBlendingMode
    

    Gets the value of the BitmapBlendingMode render option for a visual.

    Source

    set_bitmap_blending_mode

    fn set_bitmap_blending_mode(visual: &Visual, value: BitmapBlendingMode)
    

    Sets the value of the BitmapBlendingMode render option for a visual.

    Source

    get_edge_mode

    fn get_edge_mode(visual: &Visual) -> EdgeMode
    

    Gets the value of the EdgeMode render option for a visual.

    Source

    set_edge_mode

    fn set_edge_mode(visual: &Visual, value: EdgeMode)
    

    Sets the value of the EdgeMode render option for a visual.

    Source

    get_text_rendering_mode

    fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
    

    Gets the value of the TextRenderingMode render option for a visual. Superseded by the text options.

    Source

    set_text_rendering_mode

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

    Sets the value of the TextRenderingMode render option for a visual. Superseded by the text options.

    Source

    get_requires_full_opacity_handling

    fn get_requires_full_opacity_handling(visual: &Visual) -> Option<bool>
    

    Gets the value of the RequiresFullOpacityHandling render option for a visual.

    Source

    set_requires_full_opacity_handling

    fn set_requires_full_opacity_handling(visual: &Visual, value: Option<bool>)
    

    Sets the value of the RequiresFullOpacityHandling render option for a visual.

    Source

    merge_with

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

    Returns options where every unspecified value of self is taken from other.

    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.