GUI
|
Wrapper for std::function; used by EventEmitter to append IDs to listening functions. More...
#include <EventListener.h>
Public Types | |
typedef std::function< void(Event &)> | Function |
typedef unsigned int | Id |
Public Member Functions | |
EventListener () | |
EventListener (Function function) | |
void | bind (Function &function) |
void | operator() (Event &event) |
Private Attributes | |
Function | func |
EventListener::Id | id |
Friends | |
class | EventEmitter |
class | GUISystem |
Wrapper for std::function; used by EventEmitter to append IDs to listening functions.
Definition at line 17 of file EventListener.h.
typedef std::function<void(Event&)> gui::EventListener::Function |
Definition at line 20 of file EventListener.h.
typedef unsigned int gui::EventListener::Id |
Definition at line 21 of file EventListener.h.
|
inline |
Definition at line 23 of file EventListener.h.
References bind(), and operator()().
EventListener::EventListener | ( | Function | function | ) |
Definition at line 9 of file EventListener.cpp.
References bind().
void EventListener::bind | ( | Function & | function | ) |
Definition at line 14 of file EventListener.cpp.
References func.
void EventListener::operator() | ( | Event & | event | ) |
Definition at line 19 of file EventListener.cpp.
References func.
|
friend |
Definition at line 35 of file EventListener.h.
|
friend |
Definition at line 36 of file EventListener.h.
|
private |
Definition at line 32 of file EventListener.h.
|
private |
Definition at line 33 of file EventListener.h.