#include <eventHandler.h>
Inheritance diagram for EventHandler:
Public Types | |
typedef void | EventFunction (CPT_Event) |
typedef void | EventCallbackFunction (CPT(Event), void *) |
Public Member Functions | |
void | process_events () |
virtual void | dispatch_event (const CPT_Event &event) |
void | write (ostream &out) const |
bool | add_hook (const string &event_name, EventFunction *function) |
bool | add_hook (const string &event_name, EventCallbackFunction *function, void *) |
bool | remove_hook (const string &event_name, EventFunction *function) |
bool | remove_hook (const string &event_name, EventCallbackFunction *function, void *) |
void | remove_all_hooks () |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad0__: EventHandler(EventQueue *queue) |
Protected Types | |
typedef pset< EventFunction * > | Functions |
typedef pmap< string, Functions > | Hooks |
typedef pair< EventCallbackFunction *, void * > | CallbackFunction |
typedef pset< CallbackFunction > | CallbackFunctions |
typedef pmap< string, CallbackFunctions > | CallbackHooks |
Protected Attributes | |
Hooks | _hooks |
CallbackHooks | _cbhooks |
EventQueue & | _queue |
Private Member Functions | |
void | write_hook (ostream &out, const Hooks::value_type &hook) const |
void | write_cbhook (ostream &out, const CallbackHooks::value_type &hook) const |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 73 of file eventHandler.h. Referenced by add_hook(), and remove_hook(). |
|
Definition at line 74 of file eventHandler.h. Referenced by dispatch_event(). |
|
Definition at line 75 of file eventHandler.h. |
|
Definition at line 48 of file eventHandler.h. |
|
Definition at line 47 of file eventHandler.h. |
|
Definition at line 71 of file eventHandler.h. Referenced by dispatch_event(). |
|
Definition at line 72 of file eventHandler.h. |
|
Definition at line 165 of file eventHandler.cxx. References _cbhooks, CallbackFunction, and data. |
|
Definition at line 146 of file eventHandler.cxx. References _hooks. Referenced by demo_keys(), PandaFramework::do_enable_default_keys(), event_add_particles(), herc_keys(), loader_keys(), main(), min_shader_keys(), motion_keys(), panda_keys(), AutonomousLerp::resume(), shader_keys(), AutonomousLerp::start(), and text_keys(). |
|
Definition at line 56 of file eventHandler.cxx. References _cbhooks, _hooks, CallbackFunctions, and Functions. Referenced by process_events(). |
|
Implements TypedObject. Definition at line 98 of file eventHandler.h. References TypedObject::get_class_type(), and TypedObject::init_type(). |
|
Reimplemented from TypedObject. Definition at line 87 of file eventHandler.h. |
|
Implements TypedObject. Definition at line 95 of file eventHandler.h. References TypedObject::get_class_type(). |
|
Reimplemented from TypedObject. Definition at line 90 of file eventHandler.h. References TypedObject::get_class_type(), TypedObject::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
Definition at line 43 of file eventHandler.cxx. References _queue, EventQueue::dequeue_event(), dispatch_event(), and EventQueue::is_queue_empty(). Referenced by PandaFramework::do_frame(). |
|
Definition at line 205 of file eventHandler.cxx. References _cbhooks, and _hooks. Referenced by PandaFramework::close_framework(). |
|
Definition at line 193 of file eventHandler.cxx. References _cbhooks, CallbackFunction, and data. |
|
Definition at line 179 of file eventHandler.cxx. References _hooks. Referenced by AutonomousLerp::stop(). |
|
Definition at line 99 of file eventHandler.cxx. References _cbhooks, _hooks, write_cbhook(), and write_hook(). |
|
Definition at line 229 of file eventHandler.cxx. Referenced by write(). |
|
Definition at line 217 of file eventHandler.cxx. Referenced by write(). |
|
Reimplemented from TypedObject. Definition at line 51 of file eventHandler.h. |
|
Definition at line 78 of file eventHandler.h. Referenced by add_hook(), dispatch_event(), remove_all_hooks(), remove_hook(), and write(). |
|
Definition at line 77 of file eventHandler.h. Referenced by add_hook(), dispatch_event(), remove_all_hooks(), remove_hook(), and write(). |
|
Definition at line 79 of file eventHandler.h. Referenced by process_events(). |
|
Reimplemented from TypedObject. Definition at line 23 of file eventHandler.cxx. |