cwidget  0.5.17
Public Member Functions | Public Attributes | List of all members
cwidget::config::key Struct Reference

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...
 

Detailed Description

Represents a keystroke as seen by curses.

Since the function keys can overlap Unicode codepoints, we need to include a value that distinguishes them.

Member Function Documentation

◆ operator<()

bool cwidget::config::key::operator< ( const key other) const
inline

Lexicographic ordering on keys.

References ch, and function_key.

Member Data Documentation

◆ ch

wint_t cwidget::config::key::ch

◆ function_key

bool cwidget::config::key::function_key

The documentation for this struct was generated from the following file: