Struct conrod::UserInput [] [src]

pub struct UserInput<'a> {
    pub maybe_mouse: Option<Mouse>,
    pub global_mouse: Mouse,
    pub pressed_keys: &'a [Key],
    pub released_keys: &'a [Key],
    pub entered_text: &'a [String],
    pub window_dim: Dimensions,
}

A wrapper over the current user input state.

Fields

maybe_mouse: Option<Mouse>

Mouse state only if it is currently available to the widget after considering capturing.

global_mouse: Mouse

The universal state of the Mouse, regardless of capturing.

pressed_keys: &'a [Key]

Keys pressed since the last cycle.

released_keys: &'a [Key]

Keys released since the last cycle.

entered_text: &'a [String]

Text entered since the last cycle.

window_dim: Dimensions

Current dimensions of the window.

Trait Implementations

impl<'a> Debug for UserInput<'a>
[src]

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

Formats the value using the given formatter.

impl<'a> Clone for UserInput<'a>
[src]

fn clone(&self) -> UserInput<'a>

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