#include <gEvent.h>
Example usage:
void gCanvas::onEvent(
gEvent& event) {
}
bool gCanvas::onSomethingEvent(gSomethingEvent& event) {
gLogi(
"gCanvas") <<
"My something event is called!";
return false;
}
#define G_BIND_FUNCTION(fn)
Definition gEvent.h:97
#define G_BIND_GLOBAL_FUNCTION(fn)
Definition gEvent.h:98
◆ gEventDispatcher()
| gEventDispatcher::gEventDispatcher |
( |
gEvent & |
event | ) |
|
|
inline |
◆ dispatch()
template<typename T , typename F >
| bool gEventDispatcher::dispatch |
( |
const F & |
func | ) |
|
|
inline |
The documentation for this class was generated from the following file: