Struct druid::HandlerCtx

source ·
pub struct HandlerCtx<'a> { /* private fields */ }
Expand description

Context given to handlers.

Implementations

Invalidate this widget. Finer-grained invalidation is not yet implemented, but when it is, this method will invalidate the widget’s bounding box.

Request layout; implies invalidation.

Send an event, to be handled by listeners.

Set or unset the widget as active.

Determine whether this widget is active.

Determine whether this widget is hot. A widget can be both hot and active, but if a widget is active, it is the only widget that can be hot.

Request an animation frame.

Calling this schedules an animation frame, and also causes anim_frame to be called on this widget at the beginning of that frame.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.