Struct crossterm_winapi::ControlKeyState
source · pub struct ControlKeyState(_);
Expand description
The state of the control keys.
This is a bitmask of the following values.
Description | Value |
---|---|
The right alt key is pressed | 0x0001 |
The left alt key is pressed | x0002 |
The right control key is pressed | 0x0004 |
The left control key is pressed | x0008 |
The shift key is pressed | 0x0010 |
The num lock light is on | 0x0020 |
The scroll lock light is on | 0x0040 |
The caps lock light is on | 0x0080 |
The key is enhanced | 0x0100 |
Implementations§
Trait Implementations§
source§impl Clone for ControlKeyState
impl Clone for ControlKeyState
source§fn clone(&self) -> ControlKeyState
fn clone(&self) -> ControlKeyState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ControlKeyState
impl Debug for ControlKeyState
source§impl PartialEq<ControlKeyState> for ControlKeyState
impl PartialEq<ControlKeyState> for ControlKeyState
source§fn eq(&self, other: &ControlKeyState) -> bool
fn eq(&self, other: &ControlKeyState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.