Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
EventQueue Class Reference

A queue of pending events. More...

#include "eventQueue.h"

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
 
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 29 of file eventQueue.h.

Constructor & Destructor Documentation

◆ EventQueue()

EventQueue::EventQueue ( )

Definition at line 24 of file eventQueue.cxx.

◆ ~EventQueue()

EventQueue::~EventQueue ( )

Definition at line 31 of file eventQueue.cxx.

Member Function Documentation

◆ clear()

void EventQueue::clear ( )

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

Definition at line 66 of file eventQueue.cxx.

◆ dequeue_event()

CPT_Event EventQueue::dequeue_event ( )

Definition at line 95 of file eventQueue.cxx.

◆ get_global_event_queue()

EventQueue * EventQueue::get_global_event_queue ( )
inlinestatic

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 18 of file eventQueue.I.

Referenced by PhysxController::stop_jump().

◆ is_queue_empty()

bool EventQueue::is_queue_empty ( ) const

Definition at line 77 of file eventQueue.cxx.

◆ is_queue_full()

bool EventQueue::is_queue_full ( ) const

Definition at line 86 of file eventQueue.cxx.

◆ queue_event()

void EventQueue::queue_event ( CPT_Event event)

Definition at line 38 of file eventQueue.cxx.


The documentation for this class was generated from the following files: