Struct core_graphics::event::KeyCode

source ·
#[repr(C)]
pub struct KeyCode;
Expand description

Key codes for keys that are independent of keyboard layout.

Ref

Implementations§

source§

impl KeyCode

source

pub const RETURN: CGKeyCode = 36u16

source

pub const TAB: CGKeyCode = 48u16

source

pub const SPACE: CGKeyCode = 49u16

source

pub const DELETE: CGKeyCode = 51u16

source

pub const ESCAPE: CGKeyCode = 53u16

source

pub const COMMAND: CGKeyCode = 55u16

source

pub const SHIFT: CGKeyCode = 56u16

source

pub const CAPS_LOCK: CGKeyCode = 57u16

source

pub const OPTION: CGKeyCode = 58u16

source

pub const CONTROL: CGKeyCode = 59u16

source

pub const RIGHT_COMMAND: CGKeyCode = 54u16

source

pub const RIGHT_SHIFT: CGKeyCode = 60u16

source

pub const RIGHT_OPTION: CGKeyCode = 61u16

source

pub const RIGHT_CONTROL: CGKeyCode = 62u16

source

pub const FUNCTION: CGKeyCode = 63u16

source

pub const VOLUME_UP: CGKeyCode = 72u16

source

pub const VOLUME_DOWN: CGKeyCode = 73u16

source

pub const MUTE: CGKeyCode = 74u16

source

pub const F1: CGKeyCode = 122u16

source

pub const F2: CGKeyCode = 120u16

source

pub const F3: CGKeyCode = 99u16

source

pub const F4: CGKeyCode = 118u16

source

pub const F5: CGKeyCode = 96u16

source

pub const F6: CGKeyCode = 97u16

source

pub const F7: CGKeyCode = 98u16

source

pub const F8: CGKeyCode = 100u16

source

pub const F9: CGKeyCode = 101u16

source

pub const F10: CGKeyCode = 109u16

source

pub const F11: CGKeyCode = 103u16

source

pub const F12: CGKeyCode = 111u16

source

pub const F13: CGKeyCode = 105u16

source

pub const F14: CGKeyCode = 107u16

source

pub const F15: CGKeyCode = 113u16

source

pub const F16: CGKeyCode = 106u16

source

pub const F17: CGKeyCode = 64u16

source

pub const F18: CGKeyCode = 79u16

source

pub const F19: CGKeyCode = 80u16

source

pub const F20: CGKeyCode = 90u16

source

pub const HELP: CGKeyCode = 114u16

source

pub const HOME: CGKeyCode = 115u16

source

pub const PAGE_UP: CGKeyCode = 116u16

source

pub const FORWARD_DELETE: CGKeyCode = 117u16

source

pub const END: CGKeyCode = 119u16

source

pub const PAGE_DOWN: CGKeyCode = 121u16

source

pub const LEFT_ARROW: CGKeyCode = 123u16

source

pub const RIGHT_ARROW: CGKeyCode = 124u16

source

pub const DOWN_ARROW: CGKeyCode = 125u16

source

pub const UP_ARROW: CGKeyCode = 126u16

Auto Trait Implementations§

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, 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.