|
|
| Key () |
| | Creates an empty key.
|
|
| Key (Pt::uint32_t c) |
| | Creates a key with code c and no modifiers.
|
|
| Key (Modifier m, Pt::uint32_t c) |
| | Creates a key with modifier m and code c.
|
|
| Key (Modifiers m, Pt::uint32_t c) |
| | Creates a key with modifiers m and code c.
|
|
void | clear () |
| | Resets this key to NoKey with no modifiers.
|
|
void | set (Pt::uint32_t c) |
| | Sets the code to c and removes all modifiers.
|
|
void | set (Modifier m, Pt::uint32_t c) |
| | Sets the modifier to m and the code to c.
|
|
void | set (Modifiers m, Pt::uint32_t c) |
| | Sets the modifiers to m and the code to c.
|
|
Pt::uint32_t | code () const |
| | Returns the key code.
|
|
Modifiers | modifiers () const |
| | Returns the key modifiers.
|
|
bool | operator== (const Key &k) const |
| | Returns true when this key equals k.
|
|
bool | operator!= (const Key &k) const |
| | Returns true when this key does not equal k.
|
|
bool | operator< (const Key &k) const |
| | Returns true when this key sorts before k.
|
|
bool | empty () const |
| | Returns true when the key code is NoKey.
|
A Key identifies a physical or logical key, optionally with modifier flags such as Shift or Control. KeyEvent carries a Key together with press or release and optional Unicode text.