Panda3D
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. More...
 
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. More...
 
void queue_event (CPT_Event event)
 

Static Public Member Functions

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

Definition at line 32 of file eventQueue.h.

Member Function Documentation

◆ clear()

void EventQueue::clear ( )

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

Definition at line 75 of file eventQueue.cxx.

References is_queue_full().

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

Referenced by EventHandler::remove_all_hooks(), and PhysxController::stop_jump().

◆ is_queue_full()

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.

References PointerToVoid::is_null().

Referenced by clear().


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