Panda3D
Public Member Functions | Static Public Member Functions | List of all members
EventQueue Class Reference

A queue of pending events. More...

Public Member Functions

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

Static Public Member Functions

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

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.

Member Function Documentation

◆ __init__()

__init__ ( )

◆ clear()

clear ( )

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

◆ dequeueEvent()

const Event dequeueEvent ( )

◆ getGlobalEventQueue()

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.

◆ isQueueEmpty()

bool isQueueEmpty ( )

◆ isQueueFull()

bool isQueueFull ( )

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

◆ queueEvent()

queueEvent ( const Event  event)