Enum input::Input [] [src]

pub enum Input {
    Press(Button),
    Release(Button),
    Move(Motion),
    Text(String),
    Resize(u32u32),
    Focus(bool),
}

Models input events.

Variants

Press(Button)

Pressed a button.

Release(Button)

Released a button.

Move(Motion)

Moved mouse cursor.

Text(String)

Text (usually from keyboard).

Resize(u32u32)

Window got resized.

Focus(bool)

Window gained or lost focus.

Trait Implementations

impl Debug for Input
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Input
[src]

fn eq(&self, __arg_0: &Input) -> bool

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

fn ne(&self, __arg_0: &Input) -> bool

This method tests for !=.

impl Encodable for Input
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Input
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Input, __D::Error>

impl Clone for Input
[src]

fn clone(&self) -> Input

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more