#include <mgui/hotkeyset.h>
Public Types | |
| typedef FastDelegate< void(KEYCODE, KEYSTATE, const POINT &)> | DELEGATE |
Public Member Functions | |
| HOTKEYSET (const HOTKEYSET &rhs) | |
| HOTKEYSET () | |
| ~HOTKEYSET () | |
| bool | Add (const HOTKEYSET &HotKeySet) |
| bool | Add (KEYCODE KeyCode, DELEGATE HotKeyDelegate, KEYSTATE KeyState=KEYSTATE_None) |
| bool | CallDelegate (KEYCODE KeyCode, KEYSTATE KeyState, const POINT &Point) const |
| bool | IsEmpty () const |
| HOTKEYSET & | operator= (const HOTKEYSET &rhs) |
| bool | Remove (const HOTKEYSET &HotKeySet) |
| bool | Remove (KEYCODE KeyCode, DELEGATE HotKeyDelegate, KEYSTATE KeyState=KEYSTATE_None) |
| typedef FastDelegate<void(KEYCODE, KEYSTATE, const POINT&)> MGUI::HOTKEYSET::DELEGATE |
| MGUI::HOTKEYSET::HOTKEYSET | ( | ) |
Default ctor.
| MGUI::HOTKEYSET::HOTKEYSET | ( | const HOTKEYSET & | rhs | ) |
Default copy ctor.
| MGUI::HOTKEYSET::~HOTKEYSET | ( | ) |
Destructor.
| bool MGUI::HOTKEYSET::Add | ( | const HOTKEYSET & | HotKeySet | ) |
Add another HOTKEYSET to this set.
| bool MGUI::HOTKEYSET::Add | ( | KEYCODE | KeyCode, | |
| DELEGATE | HotKeyDelegate, | |||
| KEYSTATE | KeyState = KEYSTATE_None | |||
| ) |
Add a hot key and a delegate to call to this set of hot keys.
| bool MGUI::HOTKEYSET::CallDelegate | ( | KEYCODE | KeyCode, | |
| KEYSTATE | KeyState, | |||
| const POINT & | Point | |||
| ) | const |
Find the entry in this set based on the KeyCode and KeyStsate and call the delegate associated with it.
| Point | Point where the mouse was located in the MGUI::CTRL or MGUI::SHELL the hot key was pressed |
| bool MGUI::HOTKEYSET::IsEmpty | ( | ) | const [inline] |
Determine if this set of hot keys is empty.
| bool MGUI::HOTKEYSET::Remove | ( | const HOTKEYSET & | HotKeySet | ) |
Add a set of hot key's from this set.
An entry must match all three parameters in the single Remove() method listed above.
| bool MGUI::HOTKEYSET::Remove | ( | KEYCODE | KeyCode, | |
| DELEGATE | HotKeyDelegate, | |||
| KEYSTATE | KeyState = KEYSTATE_None | |||
| ) |
Remove a hot key entry, must match all three parameters.
1.6.1