Struct winsafe::co::VK

source ·
pub struct VK(/* private fields */);
Available on crate features kernel and user only.
Expand description

Implementations§

source§

impl VK

source

pub const unsafe fn from_raw(v: u16) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

source

pub const fn raw(&self) -> u16

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

source§

impl VK

source

pub const NoValue: Self = _

None of the actual values (zero).

source

pub const LBUTTON: Self = _

Left mouse button.

source

pub const RBUTTON: Self = _

Right mouse button.

source

pub const CANCEL: Self = _

Control-break processing.

source

pub const MBUTTON: Self = _

Middle mouse button (three-button mouse).

source

pub const XBUTTON1: Self = _

X1 mouse button.

source

pub const XBUTTON2: Self = _

X2 mouse button.

source

pub const BACK: Self = _

BACKSPACE key.

source

pub const TAB: Self = _

TAB key.

source

pub const CLEAR: Self = _

CLEAR key.

source

pub const RETURN: Self = _

ENTER key.

source

pub const SHIFT: Self = _

SHIFT key.

source

pub const CONTROL: Self = _

CTRL key.

source

pub const MENU: Self = _

ALT key.

source

pub const PAUSE: Self = _

PAUSE key.

source

pub const CAPITAL: Self = _

CAPS LOCK key.

source

pub const KANA: Self = _

IME Kana mode.

source

pub const HANGUL: Self = _

IME Hangul mode.

source

pub const IME_ON: Self = _

IME On.

source

pub const JUNJA: Self = _

IME Junja mode.

source

pub const FINAL: Self = _

IME final mode.

source

pub const HANJA: Self = _

IME Hanja mode.

source

pub const KANJI: Self = _

IME Kanji mode.

source

pub const ESCAPE: Self = _

ESC key.

source

pub const CONVERT: Self = _

IME convert.

source

pub const NONCONVERT: Self = _

IME nonconvert.

source

pub const ACCEPT: Self = _

IME accept.

source

pub const MODECHANGE: Self = _

IME mode change request.

source

pub const SPACE: Self = _

SPACEBAR key.

source

pub const PRIOR: Self = _

PAGE UP key.

source

pub const NEXT: Self = _

PAGE DOWN key.

source

pub const END: Self = _

END key.

source

pub const HOME: Self = _

HOME key.

source

pub const LEFT: Self = _

LEFT ARROW key.

source

pub const UP: Self = _

UP ARROW key.

source

pub const RIGHT: Self = _

RIGHT ARROW key.

source

pub const DOWN: Self = _

DOWN ARROW key.

source

pub const SELECT: Self = _

SELECT key.

source

pub const PRINT: Self = _

PRINT key.

source

pub const EXECUTE: Self = _

EXECUTE key.

source

pub const SNAPSHOT: Self = _

PRINT SCREEN key.

source

pub const INSERT: Self = _

INS key.

source

pub const DELETE: Self = _

DEL key.

source

pub const HELP: Self = _

HELP key.

source

pub const CHAR_0: Self = _

Number 0 key.

source

pub const CHAR_1: Self = _

Number 1 key.

source

pub const CHAR_2: Self = _

Number 2 key.

source

pub const CHAR_3: Self = _

Number 3 key.

source

pub const CHAR_4: Self = _

Number 4 key.

source

pub const CHAR_5: Self = _

Number 5 key.

source

pub const CHAR_6: Self = _

Number 6 key.

source

pub const CHAR_7: Self = _

Number 7 key.

source

pub const CHAR_8: Self = _

Number 8 key.

source

pub const CHAR_9: Self = _

Number 9 key.

source

pub const CHAR_A: Self = _

Character A key.

source

pub const CHAR_B: Self = _

Character B key.

source

pub const CHAR_C: Self = _

Character C key.

source

pub const CHAR_D: Self = _

Character D key.

source

pub const CHAR_E: Self = _

Character E key.

source

pub const CHAR_F: Self = _

Character F key.

source

pub const CHAR_G: Self = _

Character G key.

source

pub const CHAR_H: Self = _

Character H key.

source

pub const CHAR_I: Self = _

Character I key.

source

pub const CHAR_J: Self = _

Character J key.

source

pub const CHAR_K: Self = _

Character K key.

source

pub const CHAR_L: Self = _

Character L key.

source

pub const CHAR_M: Self = _

Character M key.

source

pub const CHAR_N: Self = _

Character N key.

source

pub const CHAR_O: Self = _

Character O key.

source

pub const CHAR_P: Self = _

Character P key.

source

pub const CHAR_Q: Self = _

Character Q key.

source

pub const CHAR_R: Self = _

Character R key.

source

pub const CHAR_S: Self = _

Character S key.

source

pub const CHAR_T: Self = _

Character T key.

source

pub const CHAR_U: Self = _

Character U key.

source

pub const CHAR_V: Self = _

Character V key.

source

pub const CHAR_W: Self = _

Character W key.

source

pub const CHAR_X: Self = _

Character X key.

source

pub const CHAR_Y: Self = _

Character Y key.

source

pub const CHAR_Z: Self = _

Character Z key.

source

pub const LWIN: Self = _

Left Windows key (Natural keyboard).

source

pub const RWIN: Self = _

Right Windows key (Natural keyboard).

source

pub const APPS: Self = _

Applications key context menu (Natural keyboard).

source

pub const SLEEP: Self = _

Computer Sleep key.

source

pub const NUMPAD0: Self = _

Numeric keypad 0 key.

source

pub const NUMPAD1: Self = _

Numeric keypad 1 key.

source

pub const NUMPAD2: Self = _

Numeric keypad 2 key.

source

pub const NUMPAD3: Self = _

Numeric keypad 3 key.

source

pub const NUMPAD4: Self = _

Numeric keypad 4 key.

source

pub const NUMPAD5: Self = _

Numeric keypad 5 key.

source

pub const NUMPAD6: Self = _

Numeric keypad 6 key.

source

pub const NUMPAD7: Self = _

Numeric keypad 7 key.

source

pub const NUMPAD8: Self = _

Numeric keypad 8 key.

source

pub const NUMPAD9: Self = _

Numeric keypad 9 key.

source

pub const MULTIPLY: Self = _

Numeric keypad multiply key.

source

pub const ADD: Self = _

Numeric keypad add key.

source

pub const SEPARATOR: Self = _

Numeric keypad separator key.

source

pub const SUBTRACT: Self = _

Numeric keypad subtract key.

source

pub const DECIMAL: Self = _

Numeric keypad decimal key.

source

pub const DIVIDE: Self = _

Numeric keypad divide key.

source

pub const F1: Self = _

source

pub const F2: Self = _

source

pub const F3: Self = _

source

pub const F4: Self = _

source

pub const F5: Self = _

source

pub const F6: Self = _

source

pub const F7: Self = _

source

pub const F8: Self = _

source

pub const F9: Self = _

source

pub const F10: Self = _

source

pub const F11: Self = _

source

pub const F12: Self = _

source

pub const F13: Self = _

source

pub const F14: Self = _

source

pub const F15: Self = _

source

pub const F16: Self = _

source

pub const F17: Self = _

source

pub const F18: Self = _

source

pub const F19: Self = _

source

pub const F20: Self = _

source

pub const F21: Self = _

source

pub const F22: Self = _

source

pub const F23: Self = _

source

pub const F24: Self = _

source

pub const NUMLOCK: Self = _

NUM LOCK key.

source

pub const SCROLL: Self = _

SCROLL LOCK key.

source

pub const OEM_NEC_EQUAL: Self = _

source

pub const OEM_FJ_JISHO: Self = _

source

pub const OEM_FJ_MASSHOU: Self = _

source

pub const OEM_FJ_TOUROKU: Self = _

source

pub const OEM_FJ_LOYA: Self = _

source

pub const OEM_FJ_ROYA: Self = _

source

pub const LSHIFT: Self = _

Left SHIFT key.

source

pub const RSHIFT: Self = _

Right SHIFT key.

source

pub const LCONTROL: Self = _

Left CONTROL key.

source

pub const RCONTROL: Self = _

Right CONTROL key.

source

pub const LMENU: Self = _

Left MENU key.

source

pub const RMENU: Self = _

Right MENU key.

source

pub const BROWSER_BACK: Self = _

source

pub const BROWSER_FORWARD: Self = _

source

pub const BROWSER_REFRESH: Self = _

source

pub const BROWSER_STOP: Self = _

source

pub const BROWSER_FAVORITES: Self = _

source

pub const BROWSER_HOME: Self = _

source

pub const VOLUME_MUTE: Self = _

source

pub const VOLUME_DOWN: Self = _

source

pub const VOLUME_UP: Self = _

source

pub const MEDIA_NEXT_TRACK: Self = _

source

pub const MEDIA_PREV_TRACK: Self = _

source

pub const MEDIA_STOP: Self = _

source

pub const MEDIA_PLAY_PAUSE: Self = _

source

pub const LAUNCH_MAIL: Self = _

source

pub const LAUNCH_MEDIA_SELECT: Self = _

source

pub const LAUNCH_APP1: Self = _

source

pub const LAUNCH_APP2: Self = _

source

pub const OEM_1: Self = _

source

pub const OEM_PLUS: Self = _

source

pub const OEM_COMMA: Self = _

source

pub const OEM_MINUS: Self = _

source

pub const OEM_PERIOD: Self = _

source

pub const OEM_2: Self = _

source

pub const OEM_3: Self = _

source

pub const OEM_4: Self = _

source

pub const OEM_5: Self = _

source

pub const OEM_6: Self = _

source

pub const OEM_7: Self = _

source

pub const OEM_8: Self = _

source

pub const OEM_AX: Self = _

source

pub const OEM_102: Self = _

source

pub const ICO_HELP: Self = _

source

pub const ICO_00: Self = _

source

pub const PROCESSKEY: Self = _

source

pub const ICO_CLEAR: Self = _

source

pub const PACKET: Self = _

source

pub const OEM_RESET: Self = _

source

pub const OEM_JUMP: Self = _

source

pub const OEM_PA1: Self = _

source

pub const OEM_PA2: Self = _

source

pub const OEM_PA3: Self = _

source

pub const OEM_WSCTRL: Self = _

source

pub const OEM_CUSEL: Self = _

source

pub const OEM_ATTN: Self = _

source

pub const OEM_FINISH: Self = _

source

pub const OEM_COPY: Self = _

source

pub const OEM_AUTO: Self = _

source

pub const OEM_ENLW: Self = _

source

pub const OEM_BACKTAB: Self = _

source

pub const ATTN: Self = _

source

pub const CRSEL: Self = _

source

pub const EXSEL: Self = _

source

pub const EREOF: Self = _

source

pub const PLAY: Self = _

source

pub const ZOOM: Self = _

source

pub const NONAME: Self = _

source

pub const PA1: Self = _

source

pub const OEM_CLEAR: Self = _

Trait Implementations§

source§

impl AsRef<u16> for VK

source§

fn as_ref(&self) -> &u16

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Binary for VK

source§

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

Formats the value using the given formatter.
source§

impl Clone for VK

source§

fn clone(&self) -> VK

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
source§

impl Debug for VK

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for VK

source§

fn default() -> VK

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

impl Display for VK

source§

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

Formats the value using the given formatter. Read more
source§

impl From<VK> for u16

source§

fn from(v: VK) -> Self

Converts to this type from the input type.
source§

impl Hash for VK

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntUnderlying for VK

§

type Raw = u16

Available on crate feature kernel only.
The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Available on crate feature kernel only.
Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for VK

source§

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

Formats the value using the given formatter.
source§

impl Octal for VK

source§

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

Formats the value using the given formatter.
source§

impl Ord for VK

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for VK

source§

fn eq(&self, other: &VK) -> 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.
source§

impl PartialOrd for VK

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl UpperHex for VK

source§

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

Formats the value using the given formatter.
source§

impl Copy for VK

source§

impl Eq for VK

source§

impl NativeConst for VK

source§

impl Send for VK

source§

impl StructuralPartialEq for VK

Auto Trait Implementations§

§

impl Freeze for VK

§

impl RefUnwindSafe for VK

§

impl Sync for VK

§

impl Unpin for VK

§

impl UnwindSafe for VK

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. 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.