pub struct EventBox<'video> { /* private fields */ }
Expand description

It takes the closure of handler to register, and delivers events to your event handlers by polling.

Implementations§

Constructs an event box from the video system.

Registers the handler to handle QuitEvent.

Registers the handler to handle WindowEvent.

Registers the handler to handle KeyboardEvent.

Registers the handler to handle TextInputEvent.

Registers the handler to handle TextEditingEvent.

Registers the handler to handle MouseEvent.

Registers the handler to handle ControllerEvent.

Registers the handler to handle JoystickEvent.

Registers the handler to handle AudioDeviceEvent.

Registers the handler to handle DropEvent.

Registers the handler to handle GestureEvent.

Polling the events and triggers the event handlers.

Waits until the next event occurs, but unlock with timeout seconds.

Trait Implementations§

Executes the destructor for this type. 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

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.