CompositionOptions
struct · ferroui-base · v0.5.0
struct CompositionOptions
Options of the composition renderer.
Members
use_region_dirty_rect_clippingmax_dirty_rectsdirty_rect_merge_eagernessuse_save_layer_root_clipregion_dirty_rect_clipping
use_region_dirty_rect_clipping
use_region_dirty_rect_clipping: Option<bool>
Enables more accurate tracking of dirty rects by utilizing regions if
supported by the underlying drawing context. None turns it on: only
Some(false) keeps the single dirty rectangle (a deviation, see
docs/porting/desktop-performance.md section 9.10).
max_dirty_rects
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
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
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.
region_dirty_rect_clipping
fn region_dirty_rect_clipping(self: &Self) -> bool
Whether a target tracks its dirty area as a set of rectangles clipped
with a region, when the drawing context supports regions. On unless
use_region_dirty_rect_clipping is Some(false).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.