EventHandler

Inheritance:

Methods of EventHandler:

Methods of TypedObject:

dispatchEvent
virtual void EventHandler::dispatch_event(Event const *);

Description: Calls the hooks assigned to the indicated single event.

getClassType
static TypeHandle EventHandler::get_class_type(void);

Undocumented function.

getGlobalEventHandler
static EventHandler *EventHandler::get_global_event_handler(EventQueue *queue = ((void *)(0)));

Filename: eventHandler.I Created by: skyler (27Jan04)
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Description: Returns a pointer to the one global EventHandler object. If the global object has not yet been created, this will create it.

processEvents
void EventHandler::process_events(void);

Description: The main processing loop of the EventHandler. This function must be called periodically to service events. Walks through each pending event and calls its assigned hooks.

write
void EventHandler::write(ostream &out) const;

Description:

getClassType
static TypeHandle TypedObject::get_class_type(void);

Undocumented function.

getType
virtual TypeHandle TypedObject::get_type(void) const = 0;

Derived classes should override this function to return get_class_type().

getTypeIndex
int TypedObject::get_type_index(void) const;

Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index().

isExactType
bool TypedObject::is_exact_type(TypeHandle handle) const;

Description: Returns true if the current object is the indicated type exactly.

isOfType
bool TypedObject::is_of_type(TypeHandle handle) const;

Description: Returns true if the current object is or derives from the indicated type.