|
FuncDoodle
|
Keyboard shortcut definition (key + mods). More...
#include <Keybinds.h>
Public Member Functions | |
| Shortcut () | |
| Creates an empty shortcut. | |
| Shortcut (const char *str) | |
| Parses a shortcut from a string representation. | |
| Shortcut (bool requiresCtrl, bool requiresShift, bool requiresSuper, KeyMask key) | |
| Creates a shortcut from modifier flags and a key mask. | |
| operator char * () const | |
| Converts the shortcut to a display string. | |
| bool | IsPressed () const |
| Returns whether the full shortcut is active. | |
| bool | operator== (const Shortcut &other) const |
| Returns whether two shortcuts are identical. | |
Public Attributes | |
| bool | RequiresCtrl |
| Whether Ctrl must be held. | |
| bool | RequiresShift |
| Whether Shift must be held. | |
| bool | RequiresSuper |
| Whether Super/Meta must be held. | |
| KeyMask | Key |
| Primary key mask for the shortcut. | |
Keyboard shortcut definition (key + mods).
Represents a combo of a main key + mods like shift, meta, super.
| FuncDoodle::Shortcut::Shortcut | ( | ) |
Creates an empty shortcut.
| FuncDoodle::Shortcut::Shortcut | ( | const char * | str | ) |
Parses a shortcut from a string representation.
| str | Shortcut string to parse. |
| FuncDoodle::Shortcut::Shortcut | ( | bool | requiresCtrl, |
| bool | requiresShift, | ||
| bool | requiresSuper, | ||
| KeyMask | key ) |
Creates a shortcut from modifier flags and a key mask.
| requiresCtrl | Whether Ctrl is required. |
| requiresShift | Whether Shift is required. |
| requiresSuper | Whether Super/Meta is required. |
| key | Main key or key combination. |
|
nodiscard |
Returns whether the full shortcut is active.
| FuncDoodle::Shortcut::operator char * | ( | ) | const |
Converts the shortcut to a display string.
|
inline |
Returns whether two shortcuts are identical.
| other | Shortcut to compare against. |
| KeyMask FuncDoodle::Shortcut::Key |
Primary key mask for the shortcut.
| bool FuncDoodle::Shortcut::RequiresCtrl |
Whether Ctrl must be held.
| bool FuncDoodle::Shortcut::RequiresShift |
Whether Shift must be held.
| bool FuncDoodle::Shortcut::RequiresSuper |
Whether Super/Meta must be held.