Struct conrod::input::state::State[][src]

pub struct State {
    pub mouse: Mouse,
    pub touch: FnvHashMap<Id, Touch>,
    pub widget_capturing_keyboard: Option<Id>,
    pub widget_capturing_mouse: Option<Id>,
    pub widget_under_mouse: Option<Id>,
    pub modifiers: ModifierKey,
}

Holds the current state of user input.

This includes the state of all buttons on the keyboard and mouse, as well as the position of the mouse.

It also includes which widgets, if any, are capturing keyboard and mouse input.

Fields

Mouse position and button state.

All in-progress touch interactions.

Which widget, if any, is currently capturing the keyboard

Which widget, if any, is currently capturing the mouse

The widget that is currently under the mouse cursor.

If the mouse is currently over multiple widgets, this index will represent the top-most, non-graphic-child widget.

Which modifier keys are being held down.

Methods

impl State
[src]

Returns a fresh new input state

Returns a copy of the input::State relative to the given position::Point

Trait Implementations

impl Clone for State
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for State
[src]

Formats the value using the given formatter. Read more

impl PartialEq for State
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for State

impl Sync for State