[][src]Struct winconsole::input::ControlKeyState

pub struct ControlKeyState {
    pub CapsLockOn: bool,
    pub EnhancedKey: bool,
    pub LeftAltPressed: bool,
    pub LeftCtrlPressed: bool,
    pub NumLockOn: bool,
    pub RightAltPressed: bool,
    pub RightCtrlPressed: bool,
    pub ScrollLockOn: bool,
    pub ShiftPressed: bool,
}

Flags which represent the state of control keys.

See

KEY_EVENT_RECORD.

Fields

CapsLockOn: bool

Is caps-lock enabled?

EnhancedKey: bool

Is the key an enhanced key?

LeftAltPressed: bool

Is left alt in a pressed state?

LeftCtrlPressed: bool

Is left ctrl in a pressed state?

NumLockOn: bool

Is num-lock enabled?

RightAltPressed: bool

Is right alt in a pressed state?

RightCtrlPressed: bool

Is right ctrl in a pressed state?

ScrollLockOn: bool

Is scroll-lock enabled?

ShiftPressed: bool

Is the shift key in a pressed state?

Trait Implementations

impl PartialEq<ControlKeyState> for ControlKeyState[src]

impl From<u16> for ControlKeyState[src]

impl Clone for ControlKeyState[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ControlKeyState[src]

fn default() -> ControlKeyState[src]

Creates a new ControlKeyState object with all fields set to false.

impl Into<u16> for ControlKeyState[src]

impl Copy for ControlKeyState[src]

impl Display for ControlKeyState[src]

impl Debug for ControlKeyState[src]

impl Serialize for ControlKeyState[src]

impl<'de> Deserialize<'de> for ControlKeyState[src]

Auto Trait Implementations

impl Send for ControlKeyState

impl Sync for ControlKeyState

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]