18#ifndef INCLUDED_CHOTKEYPICKER
19#define INCLUDED_CHOTKEYPICKER
#define GUI_OBJECT(obj)
Definition: IGUIObject.h:50
Definition: Canvas2D.h:36
The main object that represents a whole GUI page.
Definition: CGUI.h:61
When in focus, returns all currently pressed keys.
Definition: CHotkeyPicker.h:36
virtual void Draw(CCanvas2D &canvas)
Draws the object.
Definition: CHotkeyPicker.h:44
static const CStr EventNameCombination
Definition: CHotkeyPicker.h:74
void FireEvent(const CStr &event)
Definition: CHotkeyPicker.cpp:58
virtual ~CHotkeyPicker()
Definition: CHotkeyPicker.cpp:54
CGUISimpleSetting< float > m_TimeToCombination
Definition: CHotkeyPicker.h:67
virtual void HandleMessage(SGUIMessage &Message)
This function is called with different messages for instance when the mouse enters the object.
Definition: CHotkeyPicker.cpp:83
double m_LastKeyChange
Definition: CHotkeyPicker.h:69
virtual void Tick()
Called on every GUI tick unless the object or one of its parent is hidden/ghost.
Definition: CHotkeyPicker.cpp:69
CHotkeyPicker(CGUI &pGUI)
Definition: CHotkeyPicker.cpp:48
virtual InReaction PreemptEvent(const SDL_Event_ *ev)
Some objects need to be able to pre-emptively process SDL_Event_.
Definition: CHotkeyPicker.cpp:100
std::vector< Key > m_KeysPressed
Definition: CHotkeyPicker.h:72
static const CStr EventNameKeyChange
Definition: CHotkeyPicker.h:75
GUI object such as a button or an input-box.
Definition: IGUIObject.h:60
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:40
Definition: CHotkeyPicker.h:56
SDL_Scancode code
Definition: CHotkeyPicker.h:58
CStr scancodeName
Definition: CHotkeyPicker.h:60
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: SGUIMessage.h:68