|
| EventTarget () |
| Create an EventTarget.
|
|
virtual | ~EventTarget () |
| Destroy the EventTarget.
|
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | addEventListener (EventType &event, void(ListenerClass::*listenerMethod)(const void *, ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | addEventListener (EventType &event, void(ListenerClass::*listenerMethod)(ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | addEventListener (EventType &event, bool(ListenerClass::*listenerMethod)(const void *, ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | addEventListener (EventType &event, bool(ListenerClass::*listenerMethod)(ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | removeEventListener (EventType &event, void(ListenerClass::*listenerMethod)(const void *, ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | removeEventListener (EventType &event, void(ListenerClass::*listenerMethod)(ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | removeEventListener (EventType &event, bool(ListenerClass::*listenerMethod)(const void *, ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType , typename ArgumentsType , class ListenerClass > |
void | removeEventListener (EventType &event, bool(ListenerClass::*listenerMethod)(ArgumentsType &), bool useCapture=false, int priority=OF_EVENT_ORDER_AFTER_APP) |
|
template<class EventType > |
bool | dispatchEvent (EventType &event) |
| Dispatch the given event. More...
|
|
template<class EventArgsType > |
bool | handleEvent (EventArgsType &e) |
| Handle the given event. More...
|
|
bool | hasListenersForEventType (const std::string &type) const |
| Determine if the EventTarget has listeners for an event. More...
|
|
bool | isEventTypeRegistered (const std::string &type) const |
| Determine if the EventTarget is registered to receive the type of events. More...
|
|
void | registerEventType (const std::string &type, BaseDOMEvent *event) |
| Register a new event type by name. More...
|
|
void | unregisterEventType (const std::string &type) |
| Unregister a new event type by name. More...
|
|
virtual void | onSetup () |
|
virtual void | onUpdate () |
|
virtual void | onDraw () const |
|
virtual void | onExit () |
|
template<class EventTargetType>
class ofx::DOM::EventTarget< EventTargetType >
A class representing an EventTarget.
EventTargets know how to handle events. This class is usually inherited using the curiously-recurring template pattern.
- Template Parameters
-
EventTargetType | The type of the Tvent target. |