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]
impl Clone for Inputfn clone(&self) -> Input[src]
fn clone(&self) -> InputReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Input[src]
impl Debug for Inputfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Input[src]
impl PartialEq for Inputfn eq(&self, other: &Input) -> bool[src]
fn eq(&self, other: &Input) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Input) -> bool[src]
fn ne(&self, other: &Input) -> boolThis method tests for !=.
impl From<ButtonArgs> for Input[src]
impl From<ButtonArgs> for Inputfn from(args: ButtonArgs) -> Self[src]
fn from(args: ButtonArgs) -> SelfPerforms the conversion.
impl From<ControllerAxisArgs> for Input[src]
impl From<ControllerAxisArgs> for Inputfn from(args: ControllerAxisArgs) -> Self[src]
fn from(args: ControllerAxisArgs) -> SelfPerforms the conversion.
impl From<TouchArgs> for Input[src]
impl From<TouchArgs> for Inputimpl From<Motion> for Input[src]
impl From<Motion> for Inputimpl From<CloseArgs> for Input[src]
impl From<CloseArgs> for Input