#include <shortcut_manager.h>
Public Member Functions | |
void | RegisterShortcut (const std::string &name, const std::vector< ImGuiKey > &keys) |
void | RegisterShortcut (const std::string &name, const std::vector< ImGuiKey > &keys, std::function< void()> callback) |
void | RegisterShortcut (const std::string &name, ImGuiKey key, std::function< void()> callback) |
void | ExecuteShortcut (const std::string &name) const |
const Shortcut & | GetShortcut (const std::string &name) const |
std::function< void()> | GetCallback (const std::string &name) const |
const std::string | GetKeys (const std::string &name) const |
auto | GetShortcuts () const |
Private Attributes | |
std::unordered_map< std::string, Shortcut > | shortcuts_ |
Definition at line 23 of file shortcut_manager.h.
|
inline |
Definition at line 25 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 29 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 35 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 40 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 45 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 50 of file shortcut_manager.h.
References shortcuts_.
|
inline |
Definition at line 54 of file shortcut_manager.h.
References yaze::editor::PrintShortcut(), and shortcuts_.
|
inline |
Definition at line 58 of file shortcut_manager.h.
References shortcuts_.
Referenced by yaze::editor::ExecuteShortcuts().
|
private |
Definition at line 61 of file shortcut_manager.h.
Referenced by ExecuteShortcut(), GetCallback(), GetKeys(), GetShortcut(), GetShortcuts(), RegisterShortcut(), RegisterShortcut(), and RegisterShortcut().