HDK
|
#include <UI_HotkeyHelper.h>
Classes | |
struct | Entry |
Public Member Functions | |
UI_HotkeyHelper (UI_Object *client) | |
Default constructor. More... | |
UI_HotkeyHelper (UI_Object *client, const Entry *hotkey_entries) | |
Construct via array of hotkey entries terminated by nullptr mySymbol. More... | |
virtual | ~UI_HotkeyHelper () |
Destructor. More... | |
void | addHotkeys (const Entry *hotkey_entries) |
Adds an array of hotkey entries terminated by nullptr mySymbol. More... | |
void | addHotkey (const Entry &entry) |
Add a single hotkey entry. More... | |
void | removeHotkey (const char *symbol) |
Remove a hotkey entry. More... | |
bool | processHotkey (int key, UI_Event *event) |
bool | willProcessHotkey (int key, UI_Event *event) |
Will we handle the given UI hotkey symbol? More... | |
The UI_HotkeyHelper class allows one to maintain a table of hotkeys and their associated handler functions (of type UI_HotkeyMethod) so that we can easily perform functions like dispatching hotkey handlers as well as testing to see if a hotkey is going to be handled without invoking the handler.
Definition at line 30 of file UI_HotkeyHelper.h.
UI_HotkeyHelper::UI_HotkeyHelper | ( | UI_Object * | client | ) |
Default constructor.
Construct via array of hotkey entries terminated by nullptr mySymbol.
|
virtual |
Destructor.
Adds an array of hotkey entries terminated by nullptr mySymbol.
Invoke the handler for the given UI hotkey event. Returns true if consumed, false otherwise.
void UI_HotkeyHelper::removeHotkey | ( | const char * | symbol | ) |
Remove a hotkey entry.
Will we handle the given UI hotkey symbol?