VirtualKey

Struct VirtualKey 

#[repr(transparent)]
pub struct VirtualKey(pub i32);

Tuple Fields§

§0: i32

Implementations§

§

impl VirtualKey

pub const None: Self

pub const LeftButton: Self

pub const RightButton: Self

pub const Cancel: Self

pub const MiddleButton: Self

pub const XButton1: Self

pub const XButton2: Self

pub const Back: Self

pub const Tab: Self

pub const Clear: Self

pub const Enter: Self

pub const Shift: Self

pub const Control: Self

pub const Menu: Self

pub const Pause: Self

pub const CapitalLock: Self

pub const Kana: Self

pub const Hangul: Self

pub const ImeOn: Self

pub const Junja: Self

pub const Final: Self

pub const Hanja: Self

pub const Kanji: Self

pub const ImeOff: Self

pub const Escape: Self

pub const Convert: Self

pub const NonConvert: Self

pub const Accept: Self

pub const ModeChange: Self

pub const Space: Self

pub const PageUp: Self

pub const PageDown: Self

pub const End: Self

pub const Home: Self

pub const Left: Self

pub const Up: Self

pub const Right: Self

pub const Down: Self

pub const Select: Self

pub const Print: Self

pub const Execute: Self

pub const Snapshot: Self

pub const Insert: Self

pub const Delete: Self

pub const Help: Self

pub const Number0: Self

pub const Number1: Self

pub const Number2: Self

pub const Number3: Self

pub const Number4: Self

pub const Number5: Self

pub const Number6: Self

pub const Number7: Self

pub const Number8: Self

pub const Number9: Self

pub const A: Self

pub const B: Self

pub const C: Self

pub const D: Self

pub const E: Self

pub const F: Self

pub const G: Self

pub const H: Self

pub const I: Self

pub const J: Self

pub const K: Self

pub const L: Self

pub const M: Self

pub const N: Self

pub const O: Self

pub const P: Self

pub const Q: Self

pub const R: Self

pub const S: Self

pub const T: Self

pub const U: Self

pub const V: Self

pub const W: Self

pub const X: Self

pub const Y: Self

pub const Z: Self

pub const LeftWindows: Self

pub const RightWindows: Self

pub const Application: Self

pub const Sleep: Self

pub const NumberPad0: Self

pub const NumberPad1: Self

pub const NumberPad2: Self

pub const NumberPad3: Self

pub const NumberPad4: Self

pub const NumberPad5: Self

pub const NumberPad6: Self

pub const NumberPad7: Self

pub const NumberPad8: Self

pub const NumberPad9: Self

pub const Multiply: Self

pub const Add: Self

pub const Separator: Self

pub const Subtract: Self

pub const Decimal: Self

pub const Divide: Self

pub const F1: Self

pub const F2: Self

pub const F3: Self

pub const F4: Self

pub const F5: Self

pub const F6: Self

pub const F7: Self

pub const F8: Self

pub const F9: Self

pub const F10: Self

pub const F11: Self

pub const F12: Self

pub const F13: Self

pub const F14: Self

pub const F15: Self

pub const F16: Self

pub const F17: Self

pub const F18: Self

pub const F19: Self

pub const F20: Self

pub const F21: Self

pub const F22: Self

pub const F23: Self

pub const F24: Self

pub const NavigationView: Self

pub const NavigationMenu: Self

pub const NavigationUp: Self

pub const NavigationDown: Self

pub const NavigationLeft: Self

pub const NavigationRight: Self

pub const NavigationAccept: Self

pub const NavigationCancel: Self

pub const NumberKeyLock: Self

pub const Scroll: Self

pub const LeftShift: Self

pub const RightShift: Self

pub const LeftControl: Self

pub const RightControl: Self

pub const LeftMenu: Self

pub const RightMenu: Self

pub const GoBack: Self

pub const GoForward: Self

pub const Refresh: Self

pub const Stop: Self

pub const Search: Self

pub const Favorites: Self

pub const GoHome: Self

pub const GamepadA: Self

pub const GamepadB: Self

pub const GamepadX: Self

pub const GamepadY: Self

pub const GamepadRightShoulder: Self

pub const GamepadLeftShoulder: Self

pub const GamepadLeftTrigger: Self

pub const GamepadRightTrigger: Self

pub const GamepadDPadUp: Self

pub const GamepadDPadDown: Self

pub const GamepadDPadLeft: Self

pub const GamepadDPadRight: Self

pub const GamepadMenu: Self

pub const GamepadView: Self

pub const GamepadLeftThumbstickButton: Self

pub const GamepadRightThumbstickButton: Self

pub const GamepadLeftThumbstickUp: Self

pub const GamepadLeftThumbstickDown: Self

pub const GamepadLeftThumbstickRight: Self

pub const GamepadLeftThumbstickLeft: Self

pub const GamepadRightThumbstickUp: Self

pub const GamepadRightThumbstickDown: Self

pub const GamepadRightThumbstickRight: Self

pub const GamepadRightThumbstickLeft: Self

Trait Implementations§

§

impl Clone for VirtualKey

§

fn clone(&self) -> VirtualKey

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for VirtualKey

§

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

Formats the value using the given formatter. Read more
§

impl Default for VirtualKey

§

fn default() -> VirtualKey

Returns the “default value” for a type. Read more
§

impl PartialEq for VirtualKey

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl Copy for VirtualKey

§

impl Eq for VirtualKey

§

impl StructuralPartialEq for VirtualKey

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.

§

impl<T, U> Param<T, CopyType> for U
where T: TypeKind<TypeKind = CopyType> + Clone, U: TypeKind<TypeKind = CopyType> + Clone + CanInto<T>,

§

unsafe fn param(self) -> ParamValue<T>

Source§

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

Source§

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

Source§

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

Source§

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.