pub struct RenderOptions {
pub text_rendering_mode: TextRenderingMode,
pub bitmap_interpolation_mode: BitmapInterpolationMode,
pub edge_mode: EdgeMode,
pub bitmap_blending_mode: BitmapBlendingMode,
pub requires_full_opacity_handling: Option<bool>,
}Expand description
Provides a set of options that control rendering behavior for visuals, including text rendering, bitmap interpolation, edge rendering, blending, and opacity handling.
Fields§
§text_rendering_mode: TextRenderingModeThe text rendering mode. Superseded by the text options.
bitmap_interpolation_mode: BitmapInterpolationModeThe interpolation mode used when rendering bitmap images.
edge_mode: EdgeModeThe edge rendering mode for non-text primitives.
bitmap_blending_mode: BitmapBlendingModeThe blending mode used when rendering bitmap images.
requires_full_opacity_handling: Option<bool>Whether full opacity handling is required for the associated content.
Implementations§
Source§impl RenderOptions
impl RenderOptions
Sourcepub fn get_bitmap_interpolation_mode(visual: &Visual) -> BitmapInterpolationMode
pub fn get_bitmap_interpolation_mode(visual: &Visual) -> BitmapInterpolationMode
Gets the value of the BitmapInterpolationMode render option for a
visual.
Sourcepub fn set_bitmap_interpolation_mode(
visual: &Visual,
value: BitmapInterpolationMode,
)
pub fn set_bitmap_interpolation_mode( visual: &Visual, value: BitmapInterpolationMode, )
Sets the value of the BitmapInterpolationMode render option for a
visual.
Sourcepub fn get_bitmap_blending_mode(visual: &Visual) -> BitmapBlendingMode
pub fn get_bitmap_blending_mode(visual: &Visual) -> BitmapBlendingMode
Gets the value of the BitmapBlendingMode render option for a
visual.
Sourcepub fn set_bitmap_blending_mode(visual: &Visual, value: BitmapBlendingMode)
pub fn set_bitmap_blending_mode(visual: &Visual, value: BitmapBlendingMode)
Sets the value of the BitmapBlendingMode render option for a
visual.
Sourcepub fn get_edge_mode(visual: &Visual) -> EdgeMode
pub fn get_edge_mode(visual: &Visual) -> EdgeMode
Gets the value of the EdgeMode render option for a visual.
Sourcepub fn set_edge_mode(visual: &Visual, value: EdgeMode)
pub fn set_edge_mode(visual: &Visual, value: EdgeMode)
Sets the value of the EdgeMode render option for a visual.
Sourcepub fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
pub fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
Gets the value of the TextRenderingMode render option for a visual.
Superseded by the text options.
Sourcepub fn set_text_rendering_mode(visual: &Visual, value: TextRenderingMode)
pub 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.
Sourcepub fn get_requires_full_opacity_handling(visual: &Visual) -> Option<bool>
pub fn get_requires_full_opacity_handling(visual: &Visual) -> Option<bool>
Gets the value of the RequiresFullOpacityHandling render option for
a visual.
Sourcepub fn set_requires_full_opacity_handling(visual: &Visual, value: Option<bool>)
pub fn set_requires_full_opacity_handling(visual: &Visual, value: Option<bool>)
Sets the value of the RequiresFullOpacityHandling render option for
a visual.
Sourcepub fn merge_with(&self, other: RenderOptions) -> RenderOptions
pub fn merge_with(&self, other: RenderOptions) -> RenderOptions
Returns options where every unspecified value of self is taken from
other.
Trait Implementations§
Source§impl BatchValue for RenderOptions
impl BatchValue for RenderOptions
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
impl Copy for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
impl Eq for RenderOptions
Source§impl Hash for RenderOptions
impl Hash for RenderOptions
Source§impl PartialEq for RenderOptions
impl PartialEq for RenderOptions
Source§impl ServerPropertyValue for RenderOptions
impl ServerPropertyValue for RenderOptions
impl StructuralPartialEq for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more