FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionOptions

    struct · ferroui-base · v0.5.0

    struct CompositionOptions
    

    Options of the composition renderer.

    View source

    Members

    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).

    Source

    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.

    Source

    dirty_rect_merge_eagerness

    dirty_rect_merge_eagerness: Option<f64>
    

    Controls the eagerness of merging dirty rects. Unstable: the default is subject to change.

    Source

    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.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.