Enum xplm::window::Key

source ·
pub enum Key {
Show 111 variants Back, Tab, Clear, Return, Escape, Space, Prior, Next, End, Home, Left, Up, Right, Down, Select, Print, Execute, Snapshot, Insert, Delete, Help, Key0, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, Multiply, Add, Separator, Subtract, Decimal, Divide, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24, Equal, Minus, ClosingBrace, OpeningBrace, Quote, Semicolon, Backslash, Comma, Slash, Period, Backquote, Enter, NumpadEnter, NumpadEqual,
}
Expand description

Keys that may be pressed

Variants§

§

Back

§

Tab

§

Clear

§

Return

§

Escape

§

Space

§

Prior

§

Next

§

End

§

Home

§

Left

§

Up

§

Right

§

Down

§

Select

§

Print

§

Execute

§

Snapshot

§

Insert

§

Delete

§

Help

§

Key0

The 0 key at the top of a keyboard

§

Key1

The 1 key at the top of a keyboard

§

Key2

The 2 key at the top of a keyboard

§

Key3

The 3 key at the top of a keyboard

§

Key4

The 4 key at the top of a keyboard

§

Key5

The 5 key at the top of a keyboard

§

Key6

The 6 key at the top of a keyboard

§

Key7

The 7 key at the top of a keyboard

§

Key8

The 8 key at the top of a keyboard

§

Key9

The 9 key at the top of a keyboard

§

A

§

B

§

C

§

D

§

E

§

F

§

G

§

H

§

I

§

J

§

K

§

L

§

M

§

N

§

O

§

P

§

Q

§

R

§

S

§

T

§

U

§

V

§

W

§

X

§

Y

§

Z

§

Numpad0

The 0 key on the numerical keypad

§

Numpad1

The 1 key on the numerical keypad

§

Numpad2

The 2 key on the numerical keypad

§

Numpad3

The 3 key on the numerical keypad

§

Numpad4

The 4 key on the numerical keypad

§

Numpad5

The 5 key on the numerical keypad

§

Numpad6

The 6 key on the numerical keypad

§

Numpad7

The 7 key on the numerical keypad

§

Numpad8

The 8 key on the numerical keypad

§

Numpad9

The 9 key on the numerical keypad

§

Multiply

§

Add

§

Separator

§

Subtract

§

Decimal

§

Divide

§

F1

§

F2

§

F3

§

F4

§

F5

§

F6

§

F7

§

F8

§

F9

§

F10

§

F11

§

F12

§

F13

§

F14

§

F15

§

F16

§

F17

§

F18

§

F19

§

F20

§

F21

§

F22

§

F23

§

F24

§

Equal

§

Minus

§

ClosingBrace

§

OpeningBrace

§

Quote

§

Semicolon

§

Backslash

§

Comma

§

Slash

§

Period

§

Backquote

§

Enter

Enter, also known as return in Mac OS

§

NumpadEnter

§

NumpadEqual

Trait Implementations§

source§

impl Clone for Key

source§

fn clone(&self) -> Key

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Key

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Key

source§

fn eq(&self, other: &Key) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Key

source§

impl StructuralPartialEq for Key

Auto Trait Implementations§

§

impl Freeze for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnwindSafe for Key

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.