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(Click, Option<(f32, f32)>), ScrollUp(f32, f32), ScrollDown(f32, f32), ScrollLeft(f32, f32), ScrollRight(f32, f32), ScAlign(Align), ScEmphasis(Emphasis), ScColor(FontColor), }
Input to the window, that's put into the input queue, when an event has occurred.
Variants
Resize
The window has just been resized.
Resume
The user has switched to this window (in focus).
Pause
The user has switched to a different window (out of focus).
KeyPress(Key)
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.
KeyHold(Key)
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.
KeyRelease(Key)
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.
Text(char)
The user has inputted text.
Msg(Msg)
One of the following has happenned,
- A keyboard shortcut has been used.
- A graphical shortcut has been used.
Cursor(Option<(f32, f32)>)
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, (f32, f32))
CursorPress(click, x, y)
: A mouse button has been pressed.
CursorRelease(Click, Option<(f32, f32)>)
CursorRelease(click, x, y)
: A mouse button has been released.
ScrollUp(f32, f32)
One of the following has happenned,
- The mouse wheel has been scrolled up.
- The touchpad has been used to scroll up.
ScrollDown(f32, f32)
One of the following has happenned,
- The mouse wheel has been scrolled down.
- The touchpad has been used to scroll down.
ScrollLeft(f32, f32)
One of the following has happenned,
- The mouse wheel has been scrolled left.
- The touchpad has been used to scroll left.
ScrollRight(f32, f32)
One of the following has happenned,
- The mouse wheel has been scrolled right.
- The touchpad has been used to scroll right.
ScAlign(Align)
Keyboard Shortcut - Align
ScEmphasis(Emphasis)
Keyboard Shortcut - Emphasis
ScColor(FontColor)
Keyboard Shortcut - Text Color
Trait Implementations
impl Display for Input
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Copy for Input
[src]
impl PartialEq<Input> 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 !=
.