FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionCustomVisualHandler

    struct · ferroui-base · v0.5.0

    struct CompositionCustomVisualHandler
    

    The state upstream's abstract CompositionCustomVisualHandler keeps, and its protected members: what a handler class embeds and returns from ICompositionCustomVisualHandler::handler_base.

    The handler is created on the UI thread and used on the server only: it is attached to the server-side custom visual when that visual is created.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    effective_size

    fn effective_size(self: &Self) -> Vector
    

    The size of the visual.

    Source

    composition_now

    fn composition_now(self: &Self) -> Duration
    

    The time of the server compositor.

    Source

    invalidate

    fn invalidate(self: &Self)
    

    Asks for the visual to be redrawn.

    Source

    invalidate_rect

    fn invalidate_rect(self: &Self, rc: Rect)
    

    Asks for an area of the visual to be redrawn.

    Source

    register_for_next_animation_frame_update

    fn register_for_next_animation_frame_update(self: &Self)
    

    Asks for ICompositionCustomVisualHandler::on_animation_frame_update to be called on the next frame.

    Source

    render_clip_contains

    fn render_clip_contains(self: &Self, pt: Point) -> bool
    

    Whether a point of the visual is inside the current clip.

    Source

    render_clip_intersectes

    fn render_clip_intersectes(self: &Self, rc: Rect) -> bool
    

    Whether a rectangle of the visual intersects the current clip.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

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