Skip to main content

ferroui_base/rendering/composition/
composition_options.rs

1/// Options of the composition renderer.
2#[derive(Clone, Copy, Debug, Default, PartialEq)]
3pub struct CompositionOptions {
4    /// Enables more accurate tracking of dirty rects by utilizing regions if
5    /// supported by the underlying drawing context.
6    pub use_region_dirty_rect_clipping: Option<bool>,
7    /// The maximum number of dirty rects to track when region clip is in
8    /// use. Setting this to zero or a negative value removes the smarter
9    /// algorithm and uses the underlying drawing context region support
10    /// directly. The default value is 8.
11    pub max_dirty_rects: Option<i32>,
12    /// Controls the eagerness of merging dirty rects. Unstable: the default
13    /// is subject to change.
14    pub dirty_rect_merge_eagerness: Option<f64>,
15    /// Enforces dirty contents to be rendered into an extra intermediate
16    /// surface before being applied onto the saved frame.
17    pub use_save_layer_root_clip: Option<bool>,
18}