Enum cursive::event::Key
[−]
[src]
pub enum Key { Enter, Tab, ShiftTab, Left, Right, Up, Down, PageUp, PageDown, Backspace, Home, ShiftHome, CtrlHome, CtrlShiftHome, End, ShiftEnd, CtrlEnd, CtrlShiftEnd, Del, ShiftDel, CtrlDel, CtrlShiftDel, Ins, CtrlIns, Esc, NumpadCenter, CtrlPageUp, CtrlPageDown, ShiftUp, ShiftDown, ShiftLeft, ShiftRight, CtrlShiftLeft, CtrlShiftRight, CtrlShiftUp, CtrlShiftDown, CtrlLeft, CtrlRight, CtrlUp, CtrlDown, F(u8), CtrlF(u8), ShiftF(u8), CtrlShiftF(u8), CtrlChar(char), Unknown(i32), }
Represents a key, or a combination of keys.
Variants
Enter
Both Enter and numpad Enter
Tab
Tabulation key
ShiftTab
Left
Right
Up
Down
PageUp
PageDown
Backspace
Home
ShiftHome
CtrlHome
CtrlShiftHome
End
ShiftEnd
CtrlEnd
CtrlShiftEnd
Del
Delete key
ShiftDel
CtrlDel
CtrlShiftDel
Ins
Insert key.
CtrlIns
Insert key while ctrl is pressed.
Esc
Escape key.
NumpadCenter
The 5 in the center of the keypad, when numlock is disabled.
CtrlPageUp
CtrlPageDown
ShiftUp
ShiftDown
ShiftLeft
Left arrow while shift is pressed.
ShiftRight
Right arrow while shift is pressed.
CtrlShiftLeft
CtrlShiftRight
CtrlShiftUp
CtrlShiftDown
CtrlLeft
CtrlRight
CtrlUp
CtrlDown
F(u8)
CtrlF(u8)
ShiftF(u8)
CtrlShiftF(u8)
CtrlChar(char)
Unknown(i32)
Methods
impl Key
[src]
fn from_ncurses(ch: i32) -> Self
Returns the Key enum corresponding to the given ncurses event.
Trait Implementations
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Copy for Key
[src]
impl Clone for Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Key
[src]
impl PartialEq for Key
[src]
fn eq(&self, __arg_0: &Key) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Key) -> bool
This method tests for !=
.