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.
Members
text_rendering_modebitmap_interpolation_modeedge_modebitmap_blending_moderequires_full_opacity_handlingget_bitmap_interpolation_modeset_bitmap_interpolation_modeget_bitmap_blending_modeset_bitmap_blending_modeget_edge_modeset_edge_modeget_text_rendering_modeset_text_rendering_modeget_requires_full_opacity_handlingset_requires_full_opacity_handlingmerge_with
text_rendering_mode
text_rendering_mode: crate::media::TextRenderingMode
The text rendering mode. Superseded by the text options.
bitmap_interpolation_mode
bitmap_interpolation_mode: crate::media::imaging::BitmapInterpolationMode
The interpolation mode used when rendering bitmap images.
edge_mode
edge_mode: crate::media::EdgeMode
The edge rendering mode for non-text primitives.
bitmap_blending_mode
bitmap_blending_mode: crate::media::imaging::BitmapBlendingMode
The blending mode used when rendering bitmap images.
requires_full_opacity_handling
requires_full_opacity_handling: Option<bool>
Whether full opacity handling is required for the associated content.
get_bitmap_interpolation_mode
fn get_bitmap_interpolation_mode(visual: &Visual) -> BitmapInterpolationMode
Gets the value of the BitmapInterpolationMode render option for a
visual.
set_bitmap_interpolation_mode
fn set_bitmap_interpolation_mode(visual: &Visual, value: BitmapInterpolationMode)
Sets the value of the BitmapInterpolationMode render option for a
visual.
get_bitmap_blending_mode
fn get_bitmap_blending_mode(visual: &Visual) -> BitmapBlendingMode
Gets the value of the BitmapBlendingMode render option for a
visual.
set_bitmap_blending_mode
fn set_bitmap_blending_mode(visual: &Visual, value: BitmapBlendingMode)
Sets the value of the BitmapBlendingMode render option for a
visual.
get_edge_mode
fn get_edge_mode(visual: &Visual) -> EdgeMode
Gets the value of the EdgeMode render option for a visual.
set_edge_mode
fn set_edge_mode(visual: &Visual, value: EdgeMode)
Sets the value of the EdgeMode render option for a visual.
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.
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.
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.
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.
merge_with
fn merge_with(self: &Self, other: RenderOptions) -> RenderOptions
Returns options where every unspecified value of self is taken from
other.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashServerPropertyValueBatchValue
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.