#include <functional>
Go to the source code of this file.
|
| #define | BIT(x) (1 << x) |
| |
| #define | G_EVENT_CLASS_TYPE(type) |
| |
| #define | G_EVENT_CLASS_CATEGORY(category) virtual int getCategoryFlags() const override { return category; } |
| |
| #define | G_BIND_FUNCTION(fn) [this](auto&&... args) -> decltype(auto) { return this->fn(std::forward<decltype(args)>(args)...); } |
| |
| #define | G_BIND_GLOBAL_FUNCTION(fn) [](auto&&... args) -> decltype(auto) { return fn(std::forward<decltype(args)>(args)...); } |
| |
◆ BIT
| #define BIT |
( |
|
x | ) |
(1 << x) |
◆ G_BIND_FUNCTION
| #define G_BIND_FUNCTION |
( |
|
fn | ) |
[this](auto&&... args) -> decltype(auto) { return this->fn(std::forward<decltype(args)>(args)...); } |
◆ G_BIND_GLOBAL_FUNCTION
| #define G_BIND_GLOBAL_FUNCTION |
( |
|
fn | ) |
[](auto&&... args) -> decltype(auto) { return fn(std::forward<decltype(args)>(args)...); } |
◆ G_EVENT_CLASS_CATEGORY
| #define G_EVENT_CLASS_CATEGORY |
( |
|
category | ) |
virtual int getCategoryFlags() const override { return category; } |
◆ G_EVENT_CLASS_TYPE
| #define G_EVENT_CLASS_TYPE |
( |
|
type | ) |
|
Value: static size_t getStaticType() { return typeid(type).hash_code(); } \
virtual size_t getEventType() const override { return getStaticType(); } \
virtual const char* getEventName() const override { return #type; }
◆ EventHandlerFn
◆ EventCategory
| Enumerator |
|---|
| EVENTCATEGORY_APP | |
| EVENTCATEGORY_INPUT | |
| EVENTCATEGORY_KEYBOARD | |
| EVENTCATEGORY_MOUSE | |
| EVENTCATEGORY_MOUSE_BUTTON | |
| EVENTCATEGORY_JOYSTICK | |
| EVENTCATEGORY_TOUCHSCREEN | |
| EVENTCATEGORY_RENDERER | |
| EVENTCATEGORY_CUSTOM | |