40 #ifndef _uihotkeyhandler_cpp
41 #define _uihotkeyhandler_cpp
43 #include "UI/hotkeyhandler.h"
70 std::pair<const HotKeyIterator,const HotKeyIterator> Result =
HotKeys.equal_range(HotKey.
GetCode());
73 if(BoundButton == (*It).second) {
std::pair< Input::InputCode, UI::Button * > HotKeyPair
A convenience type for handling hotkey pairs.
~HotKeyHandler()
Class destructor.
void RemoveAllHotKeys()
Clears all registered hotkeys.
void BindHotKey(const Input::MetaCode &HotKey, UI::Button *BoundButton)
Binds a key to a button.
The bulk of the engine components go in this namspace.
void UnbindHotKey(const Input::MetaCode &HotKey, UI::Button *BoundButton)
Removes a previously set hotkey binding.
HotKeyContainer::iterator HotKeyIterator
Iterator type for hotkey bindings stored by this class.
HotKeyContainer HotKeys
A container storing all registered hotkey bindings.
HotKeyHandler()
Class constructor.