[−]Enum glfw::Key
Input keys.
Variants
SpaceApostropheCommaMinusPeriodSlashNum0Num1Num2Num3Num4Num5Num6Num7Num8Num9SemicolonEqualABCDEFGHIJKLMNOPQRSTUVWXYZLeftBracketBackslashRightBracketGraveAccentWorld1World2EscapeEnterTabBackspaceInsertDeleteRightLeftDownUpPageUpPageDownHomeEndCapsLockScrollLockNumLockPrintScreenPauseF1F2F3F4F5F6F7F8F9F10F11F12F13F14F15F16F17F18F19F20F21F22F23F24F25Kp0Kp1Kp2Kp3Kp4Kp5Kp6Kp7Kp8Kp9KpDecimalKpDivideKpMultiplyKpSubtractKpAddKpEnterKpEqualLeftShiftLeftControlLeftAltLeftSuperRightShiftRightControlRightAltRightSuperMenuUnknownMethods
impl Key[src]
impl Keypub 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 Keyimpl PartialOrd<Key> for Key[src]
impl PartialOrd<Key> for Keyfn 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 Keyimpl PartialEq<Key> for Key[src]
impl PartialEq<Key> for Keyfn eq(&self, other: &Key) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=.
impl Clone for Key[src]
impl Clone for Keyfn 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 Keyfn 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 Keyimpl Hash for Key[src]
impl Hash for Keyfn 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 Keyfn 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 Timpl<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] |