Panda3D
Public Member Functions | Static Public Member Functions

EventQueue Class Reference

A queue of pending events. More...

#include "eventQueue.h"

List of all members.

Public Member Functions

void clear ()
 Empties all events on the queue, throwing them on the floor.
CPT_Event dequeue_event ()
bool is_queue_empty () const
bool is_queue_full () const
 This function is deprecated--the queue is never full these days.
void queue_event (CPT_Event event)

Static Public Member Functions

static EventQueueget_global_event_queue ()
 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.

Definition at line 32 of file eventQueue.h.


Member Function Documentation

void EventQueue::clear ( )

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

Definition at line 75 of file eventQueue.cxx.

EventQueue * EventQueue::get_global_event_queue ( ) [inline, static]

Returns a pointer to the one global EventQueue object.

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

Definition at line 24 of file eventQueue.I.

Referenced by PhysxController::stop_jump().

bool EventQueue::is_queue_full ( ) const

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

Definition at line 100 of file eventQueue.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations