Enum input::Input
[−]
[src]
pub enum Input { Button(ButtonArgs), Move(Motion), Text(String), Resize(u32, u32), Focus(bool), Cursor(bool), Close(CloseArgs), }
Models input events.
Variants
Button(ButtonArgs)
Changed button state.
Move(Motion)
Moved mouse cursor.
Text(String)
Text (usually from keyboard).
Resize(u32, u32)
Window got resized.
Focus(bool)
Window gained or lost focus.
Cursor(bool)
Window gained or lost cursor.
Close(CloseArgs)
Window closed.
Trait Implementations
impl Clone for Input
[src]
fn clone(&self) -> Input
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Input
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Input
[src]
fn eq(&self, __arg_0: &Input) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Input) -> bool
[src]
This method tests for !=
.
impl From<ButtonArgs> for Input
[src]
fn from(args: ButtonArgs) -> Self
[src]
Performs the conversion.
impl From<ControllerAxisArgs> for Input
[src]
fn from(args: ControllerAxisArgs) -> Self
[src]
Performs the conversion.