cwidget
0.5.17
|
Represents a keystroke as seen by curses. More...
#include <keybindings.h>
Public Member Functions | |
key (wint_t _ch, bool _function_key) | |
bool | operator< (const key &other) const |
Lexicographic ordering on keys. More... | |
bool | operator== (const key &other) const |
Public Attributes | |
wint_t | ch |
The key code. More... | |
bool | function_key |
If true, this is a function key. More... | |
Represents a keystroke as seen by curses.
Since the function keys can overlap Unicode codepoints, we need to include a value that distinguishes them.
Lexicographic ordering on keys.
References ch, and function_key.
wint_t cwidget::config::key::ch |
The key code.
Referenced by cwidget::widgets::statuschoice::handle_key(), cwidget::widgets::editline::handle_key(), cwidget::widgets::menu::handle_key(), cwidget::config::keyname(), and operator<().
bool cwidget::config::key::function_key |
If true, this is a function key.
Referenced by cwidget::widgets::statuschoice::handle_key(), cwidget::widgets::editline::handle_key(), cwidget::config::keyname(), and operator<().