pub struct WindowHandler { /* private fields */ }

Implementations

Will schedule an update for the next frame.

Trait Implementations

Called when a menu item is selected.
Provide the handler with a handle to the window so that it can invalidate or make other requests. Read more
Request the handler to prepare to paint the window contents. In particular, if there are any regions that need to be repainted on the next call to paint, the handler should invalidate those regions by calling WindowHandle::invalidate_rect or WindowHandle::invalidate. Read more
Request the handler to paint the window contents. invalid is the region in display points that needs to be repainted; painting outside the invalid region will have no effect. Read more
Get a reference to the handler state. Used mostly by idle handlers.
Called when the size of the window has changed. Read more
Called when a idle token is requested by IdleHandle::schedule_idle() call.
Called when the window is being destroyed. Note that this happens earlier in the sequence than drop (at WM_DESTROY, while the latter is WM_NCDESTROY). Read more
Called on mouse button down.
Called when the mouse moves.
Called on mouse button up.
Called on a mouse wheel event. Read more
Called on a key down event. Read more
Called when the scale of the window has changed. Read more
Called when the resources need to be rebuilt. Read more
Called when a menu item is selected.
Called when a “Save As” dialog is closed. Read more
Called when an “Open” dialog is closed. Read more
Called when a key is released. This corresponds to the WM_KEYUP message on Windows, or keyUp(withEvent:) on macOS. Read more
Called when a platform-defined zoom gesture occurs (such as pinching on the trackpad). Read more
Called when the mouse cursor has left the application window
Called on timer event. Read more
Called when this window becomes the focused window.
Called when this window stops being the focused window.
Called when the shell requests to close the window, for example because the user clicked the little “X” in the titlebar. Read more

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
This associated type is used to avoid recursive comparisons of the whole widget subtree (if one of the fields is itself a widget). 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.