EventQueue¶
from acron.core import EventQueue
- class EventQueue¶
Bases:
A queue of pending events. As events are thrown, they are added to this queue; eventually, they will be extracted out again by an
EventHandlerand processed.Inheritance diagram
digraph inheritancefca950192f { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "EventQueue" [URL="acron.core.EventQueue.html#acron.core.EventQueue",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "EventQueue" [arrowsize=0.75,style=""]; }- __init__()¶
- clear()¶
Empties all events on the queue, throwing them on the floor.
- dequeue_event()¶
- static get_global_event_queue()¶
Returns a pointer to the one global
EventQueueobject. If the global object has not yet been created, this will create it.
- is_queue_empty()¶
- is_queue_full()¶
Deprecated: Always returns false; the queue can never be full.
- queue_event()¶