Enum cgl_rs::window::Key

source ·
#[repr(C)]
pub enum Key {
Show 119 variants Unknown, Space, Apostrophe, Comma, Minus, Period, Slash, K0, K1, K2, K3, K4, K5, K6, K7, K8, K9, Semicolon, Equal, 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, LeftBracket, Backslash, RightBracket, GraveAccent, Escape, Enter, Tab, Backspace, Insert, Delete, Right, Left, Down, Up, PageUp, PageDown, Home, End, CapsLock, ScrollLock, NumLock, PrintScreen, Pause, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24, F25, KeyPad0, KeyPad1, KeyPad2, KeyPad3, KeyPad4, KeyPad5, KeyPad6, KeyPad7, KeyPad8, KeyPad9, KeyPadDecimal, KeyPadDivide, KeyPadMultiply, KeyPadSubtract, KeyPadAdd, KeyPadEnter, KeyPadEqual, LeftShift, LeftControl, LeftAlt, LeftSuper, RightShift, RightControl, RightAlt, RightSuper, Menu,
}
Expand description

Represents a keyboard key, with each variant corresponding to a specific key code.

Variants§

§

Unknown

§

Space

§

Apostrophe

§

Comma

§

Minus

§

Period

§

Slash

§

K0

§

K1

§

K2

§

K3

§

K4

§

K5

§

K6

§

K7

§

K8

§

K9

§

Semicolon

§

Equal

§

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

§

LeftBracket

§

Backslash

§

RightBracket

§

GraveAccent

§

Escape

§

Enter

§

Tab

§

Backspace

§

Insert

§

Delete

§

Right

§

Left

§

Down

§

Up

§

PageUp

§

PageDown

§

Home

§

End

§

CapsLock

§

ScrollLock

§

NumLock

§

PrintScreen

§

Pause

§

F1

§

F2

§

F3

§

F4

§

F5

§

F6

§

F7

§

F8

§

F9

§

F10

§

F11

§

F12

§

F13

§

F14

§

F15

§

F16

§

F17

§

F18

§

F19

§

F20

§

F21

§

F22

§

F23

§

F24

§

F25

§

KeyPad0

§

KeyPad1

§

KeyPad2

§

KeyPad3

§

KeyPad4

§

KeyPad5

§

KeyPad6

§

KeyPad7

§

KeyPad8

§

KeyPad9

§

KeyPadDecimal

§

KeyPadDivide

§

KeyPadMultiply

§

KeyPadSubtract

§

KeyPadAdd

§

KeyPadEnter

§

KeyPadEqual

§

LeftShift

§

LeftControl

§

LeftAlt

§

LeftSuper

§

RightShift

§

RightControl

§

RightAlt

§

RightSuper

§

Menu

Trait Implementations§

source§

impl Debug for Key

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.