Struct windows::System::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 copy 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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> 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> ToOwned for T
where T: Clone,

§

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

§

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.