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 29 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 65 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 19 of file eventQueue.I.

◆ is_queue_full()

bool EventQueue::is_queue_full ( ) const

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

Definition at line 85 of file eventQueue.cxx.


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