Enum input::Input [] [src]

pub enum Input {
    Press(Button),
    Release(Button),
    Move(Motion),
    Text(String),
    Resize(u32u32),
    Focus(bool),
    Cursor(bool),
    Close(CloseArgs),
    Render(RenderArgs),
    AfterRender(AfterRenderArgs),
    Update(UpdateArgs),
    Idle(IdleArgs),
    Custom(EventIdArc<Any + Send + Sync>),
}

Models input events.

Variants

Pressed a button.

Released a button.

Moved mouse cursor.

Text (usually from keyboard).

Window got resized.

Window gained or lost focus.

Window gained or lost cursor.

Window closed.

Render graphics.

After rendering and swapping buffers.

Update the state of the application.

Do background tasks that can be done incrementally.

Custom event.

When comparing two custom events for equality, they always return false.

Trait Implementations

impl ControllerAxisEvent for Input
[src]

[src]

Creates a controller axis event.

[src]

Calls closure if this is a controller axis event.

[src]

Returns controller axis arguments.

impl MouseCursorEvent for Input
[src]

[src]

Creates a mouse cursor event.

[src]

Calls closure if this is a mouse cursor event.

[src]

Returns mouse cursor arguments.

impl MouseRelativeEvent for Input
[src]

[src]

Creates a mouse relative event.

[src]

Calls closure if this is a mouse relative event.

[src]

Returns mouse relative arguments.

impl MouseScrollEvent for Input
[src]

[src]

Creates a mouse scroll event.

[src]

Calls a closure if this is a mouse scroll event.

[src]

Returns mouse scroll arguments.

impl GenericEvent for Input
[src]

[src]

The id of this event.

[src]

Calls closure with arguments

impl AfterRenderEvent for Input
[src]

[src]

Creates an after render event.

[src]

Calls closure if this is an after render event.

[src]

Returns after render arguments.

impl CloseEvent for Input
[src]

[src]

Creates a close event from arguments.

[src]

Calls closure if this is a close event.

[src]

Returns close arguments.

impl CursorEvent for Input
[src]

[src]

Creates a cursor event.

[src]

Calls closure if this is a cursor event.

[src]

Returns cursor arguments.

impl FocusEvent for Input
[src]

[src]

Creates a focus event.

[src]

Calls closure if this is a focus event.

[src]

Returns focus arguments.

impl IdleEvent for Input
[src]

[src]

Creates an idle event.

[src]

Calls closure if this is an idle event.

[src]

Creates an update event with delta time.

[src]

Returns idle arguments.

impl PressEvent for Input
[src]

[src]

Creates a press event.

[src]

Calls closure if this is a press event.

[src]

Returns press arguments.

impl ReleaseEvent for Input
[src]

[src]

Creates a release event.

[src]

Calls closure if this is a release event.

[src]

Returns release arguments.

impl RenderEvent for Input
[src]

[src]

Creates a render event.

[src]

Calls closure if this is a render event.

[src]

Returns render arguments.

impl ResizeEvent for Input
[src]

[src]

Creates a resize event.

[src]

Calls closure if this is a resize event.

[src]

Returns resize arguments.

impl TextEvent for Input
[src]

[src]

Creates a text event.

[src]

Calls closure if this is a text event.

[src]

Returns text arguments.

impl TouchEvent for Input
[src]

[src]

Creates a touch event.

[src]

Calls closure if this is a touch event.

[src]

Returns touch arguments.

impl UpdateEvent for Input
[src]

[src]

Creates an update event.

[src]

Calls closure if this is an update event.

[src]

Creates an update event with delta time.

[src]

Returns update arguments.

impl Clone for Input
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Input
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Input
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Decodable for Input
[src]

[src]

Deserialize a value using a Decoder.

impl Encodable for Input
[src]

[src]

Serialize a value using an Encoder.

impl From<Motion> for Input
[src]

[src]

Performs the conversion.

impl From<RenderArgs> for Input
[src]

[src]

Performs the conversion.

impl From<AfterRenderArgs> for Input
[src]

[src]

Performs the conversion.

impl From<UpdateArgs> for Input
[src]

[src]

Performs the conversion.

impl From<IdleArgs> for Input
[src]

[src]

Performs the conversion.