EventHandler

Inheritance:

Methods of EventHandler:

Methods of TypedObject:

dispatchEvent
virtual void EventHandler::dispatch_event(ConstPointerTo< Event > const &event);

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);

Filename: eventHandler.I Created by: skyler (27Jan04)
PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ .
To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .
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:

getBestParentFromSet
int TypedObject::get_best_parent_from_Set(set< int > const &) const;

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

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.