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.
Members
neweffective_sizecomposition_nowinvalidateinvalidate_rectregister_for_next_animation_frame_updaterender_clip_containsrender_clip_intersectes
new
fn new() -> Self
effective_size
fn effective_size(self: &Self) -> Vector
The size of the visual.
composition_now
fn composition_now(self: &Self) -> Duration
The time of the server compositor.
invalidate
fn invalidate(self: &Self)
Asks for the visual to be redrawn.
invalidate_rect
fn invalidate_rect(self: &Self, rc: Rect)
Asks for an area of the visual to be redrawn.
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.
render_clip_contains
fn render_clip_contains(self: &Self, pt: Point) -> bool
Whether a point of the visual is inside the current clip.
render_clip_intersectes
fn render_clip_intersectes(self: &Self, rc: Rect) -> bool
Whether a rectangle of the visual intersects the current clip.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.