Enum adi_gpu_base::Input [] [src]

pub enum Input {
    Resize,
    Resume,
    Pause,
    KeyPress(Key),
    KeyHold(Key),
    KeyRelease(Key),
    Text(char),
    Msg(Msg),
    Cursor(Option<(f32, f32)>),
    CursorPress(Click(f32, f32)),
    CursorRelease(ClickOption<(f32, f32)>),
    ScrollUp(f32f32),
    ScrollDown(f32f32),
    ScrollLeft(f32f32),
    ScrollRight(f32f32),
    ScAlign(Align),
    ScEmphasis(Emphasis),
    ScColor(FontColor),
}

Input to the window, that's put into the input queue, when an event has occurred.

Variants

The window has just been resized.

The user has switched to this window (in focus).

The user has switched to a different window (out of focus).

One of the following has happenned,

  • A key has been pressed on a physical keyboard.
  • A key has been pressed on an on-screen keyboard.

One of the following has happenned,

  • A key is being held down on a physical keyboard.
  • A key is being held down on an on-screen keyboard.

One of the following has happenned,

  • A key has been released on a physical keyboard.
  • A key has been released on an on-screen keyboard.

The user has inputted text.

One of the following has happenned,

  • A keyboard shortcut has been used.
  • A graphical shortcut has been used.

Cursor(x, y): One of the following has happenned,

  • The user moves the cursor with the mouse.
  • The user moves the cursor with the touchpad.
  • The last place that the user touched the touchscreen changes.

CursorPress(click, x, y): A mouse button has been pressed.

CursorRelease(click, x, y): A mouse button has been released.

One of the following has happenned,

  • The mouse wheel has been scrolled up.
  • The touchpad has been used to scroll up.

One of the following has happenned,

  • The mouse wheel has been scrolled down.
  • The touchpad has been used to scroll down.

One of the following has happenned,

  • The mouse wheel has been scrolled left.
  • The touchpad has been used to scroll left.

One of the following has happenned,

  • The mouse wheel has been scrolled right.
  • The touchpad has been used to scroll right.

Keyboard Shortcut - Align

Keyboard Shortcut - Emphasis

Keyboard Shortcut - Text Color

Trait Implementations

impl Display for Input
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Input
[src]

impl PartialEq<Input> for Input
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Input
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Input

impl Sync for Input