Panda3D
Public Member Functions | Static Public Member Functions

EventQueue Class Reference

A queue of pending events. More...

List of all members.

Public Member Functions

 EventQueue ()
 clear ()
 Empties all events on the queue, throwing them on the floor.
Event const dequeueEvent ()
bool isQueueEmpty ()
bool isQueueFull ()
 This function is deprecated--the queue is never full these days.
 queueEvent (Event const event)

Static Public Member Functions

static EventQueue getGlobalEventQueue ()
 Returns a pointer to the one global EventQueue object.

Detailed Description

A queue of pending events.

As events are thrown, they are added to this queue; eventually, they will be extracted out again by an EventHandler and processed.


Constructor & Destructor Documentation


Member Function Documentation

clear ( )

Empties all events on the queue, throwing them on the floor.

Event const dequeueEvent ( )
static EventQueue getGlobalEventQueue ( ) [static]

Returns a pointer to the one global EventQueue object.

If the global object has not yet been created, this will create it.

bool isQueueEmpty ( )
bool isQueueFull ( )

This function is deprecated--the queue is never full these days.

queueEvent ( Event const  event)
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties