pub struct CompositionOptions {
pub use_region_dirty_rect_clipping: Option<bool>,
pub max_dirty_rects: Option<i32>,
pub dirty_rect_merge_eagerness: Option<f64>,
pub use_save_layer_root_clip: Option<bool>,
}Expand description
Options of the composition renderer.
Fields§
§use_region_dirty_rect_clipping: Option<bool>Enables more accurate tracking of dirty rects by utilizing regions if supported by the underlying drawing context.
max_dirty_rects: Option<i32>The maximum number of dirty rects to track when region clip is in use. Setting this to zero or a negative value removes the smarter algorithm and uses the underlying drawing context region support directly. The default value is 8.
dirty_rect_merge_eagerness: Option<f64>Controls the eagerness of merging dirty rects. Unstable: the default is subject to change.
use_save_layer_root_clip: Option<bool>Enforces dirty contents to be rendered into an extra intermediate surface before being applied onto the saved frame.
Trait Implementations§
Source§impl Clone for CompositionOptions
impl Clone for CompositionOptions
impl Copy for CompositionOptions
Source§impl Debug for CompositionOptions
impl Debug for CompositionOptions
Source§impl Default for CompositionOptions
impl Default for CompositionOptions
Source§impl PartialEq for CompositionOptions
impl PartialEq for CompositionOptions
impl StructuralPartialEq for CompositionOptions
Auto Trait Implementations§
impl Freeze for CompositionOptions
impl RefUnwindSafe for CompositionOptions
impl Send for CompositionOptions
impl Sync for CompositionOptions
impl Unpin for CompositionOptions
impl UnsafeUnpin for CompositionOptions
impl UnwindSafe for CompositionOptions
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more