|
TachyonUI 0.1.0
High-performance UI for building tools.
|
A registered command. More...
#include <gui_core/input/gui_command_manager.h>
Public Member Functions | |
| bool | IsChord () const |
| bool | HasShortcut () const |
| bool | IsHeld () const |
| bool | IsRebound () const |
| True when its shortcut isn't the one it was registered with. | |
Public Attributes | |
| CommandMode | mode |
| IconID | icon = IconID::Invalid |
| optional | |
| KeyCode | key |
| KeyModifier | modifiers |
| KeyCode | chord2Key = KeyCode::None |
| Second key of a 2-key chord (e.g. Ctrl+K then Ctrl+S); None = single-key. | |
| KeyModifier | chord2Mods = KeyModifier::None |
| std::string | description |
| std::string | displayString |
| cached "Ctrl+Shift+D" or "Ctrl+K Ctrl+S" | |
| KeyCode | defaultKey = KeyCode::None |
| The shortcut it was registered with (the first key, for a chord). | |
| KeyModifier | defaultModifiers = KeyModifier::None |
| std::function< void()> | callback |
| Instant: callback fires on press, onEnd is empty. | |
| std::function< void()> | onEnd |
| Instant: callback fires on press, onEnd is empty. | |
A registered command.
|
inline |
|
inline |
|
inline |
|
inline |
True when its shortcut isn't the one it was registered with.
| CommandMode tachyon::CommandManager::Command::mode |
| IconID tachyon::CommandManager::Command::icon = IconID::Invalid |
optional
| KeyCode tachyon::CommandManager::Command::key |
| KeyModifier tachyon::CommandManager::Command::modifiers |
| KeyCode tachyon::CommandManager::Command::chord2Key = KeyCode::None |
Second key of a 2-key chord (e.g. Ctrl+K then Ctrl+S); None = single-key.
| KeyModifier tachyon::CommandManager::Command::chord2Mods = KeyModifier::None |
| std::string tachyon::CommandManager::Command::description |
| std::string tachyon::CommandManager::Command::displayString |
cached "Ctrl+Shift+D" or "Ctrl+K Ctrl+S"
| std::function<void()> tachyon::CommandManager::Command::callback |
| std::function<void()> tachyon::CommandManager::Command::onEnd |
| KeyCode tachyon::CommandManager::Command::defaultKey = KeyCode::None |
The shortcut it was registered with (the first key, for a chord).
| KeyModifier tachyon::CommandManager::Command::defaultModifiers = KeyModifier::None |