[−]Enum glfw::Key
Input keys.
Variants
Space
Apostrophe
Comma
Minus
Period
Slash
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
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
World1
World2
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
Kp0
Kp1
Kp2
Kp3
Kp4
Kp5
Kp6
Kp7
Kp8
Kp9
KpDecimal
KpDivide
KpMultiply
KpSubtract
KpAdd
KpEnter
KpEqual
LeftShift
LeftControl
LeftAlt
LeftSuper
RightShift
RightControl
RightAlt
RightSuper
Menu
Unknown
Methods
impl Key
[src]
impl Key
pub fn name(&self) -> String | [src] |
Key method 'name' can cause a segfault, use 'get_name' instead
Wrapper around 'glfwGetKeyName` without scancode
pub fn get_name(&self) -> Option<String> | [src] |
Wrapper around 'glfwGetKeyName` without scancode
Trait Implementations
impl Eq for Key
[src]
impl Eq for Key
impl PartialOrd<Key> for Key
[src]
impl PartialOrd<Key> for Key
fn partial_cmp(&self, other: &Key) -> Option<Ordering> | [src] |
| 1.0.0 [src] |
This method tests less than (for self
and other
) and is used by the <
operator. Read more
| 1.0.0 [src] |
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
| 1.0.0 [src] |
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
| 1.0.0 [src] |
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Copy for Key
[src]
impl Copy for Key
impl PartialEq<Key> for Key
[src]
impl PartialEq<Key> for Key
fn eq(&self, other: &Key) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Clone for Key
[src]
impl Clone for Key
fn clone(&self) -> Key | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Ord for Key
[src]
impl Ord for Key
fn cmp(&self, other: &Key) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl Debug for Key
[src]
impl Debug for Key
impl Hash for Key
[src]
impl Hash for Key
fn hash<__H: Hasher>(&self, state: &mut __H) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromPrimitive for Key
impl FromPrimitive for Key
fn from_i64(n: i64) -> Option<Self> |
fn from_u64(n: u64) -> Option<Self> |
fn from_isize(n: isize) -> Option<Self> | [src] |
Convert an isize
to return an optional value of this type. If the value cannot be represented by this value, then None
is returned. Read more
fn from_i8(n: i8) -> Option<Self> | [src] |
Convert an i8
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_i16(n: i16) -> Option<Self> | [src] |
Convert an i16
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_i32(n: i32) -> Option<Self> | [src] |
Convert an i32
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_i128(n: i128) -> Option<Self> | [src] |
Convert an i128
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_usize(n: usize) -> Option<Self> | [src] |
Convert a usize
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_u8(n: u8) -> Option<Self> | [src] |
Convert an u8
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_u16(n: u16) -> Option<Self> | [src] |
Convert an u16
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_u32(n: u32) -> Option<Self> | [src] |
Convert an u32
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_u128(n: u128) -> Option<Self> | [src] |
Convert an u128
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_f32(n: f32) -> Option<Self> | [src] |
Convert a f32
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
fn from_f64(n: f64) -> Option<Self> | [src] |
Convert a f64
to return an optional value of this type. If the type cannot be represented by this value, then None
is returned. Read more
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |