libvisual  0.5.0
Public Member Functions | List of all members
LV::EventQueue Class Reference

Public Member Functions

 EventQueue (EventQueue const &)=delete
 
EventQueueoperator= (EventQueue const &)=delete
 
bool poll (Event &event)
 Polls for new events. More...
 
void add (Event const &event)
 Adds an event to the event queue. More...
 

Detailed Description

Definition at line 183 of file lv_event.h.

Member Function Documentation

void LV::EventQueue::add ( Event const &  event)

Adds an event to the event queue.

Add new VisEvents into the VisEventQueue.

Parameters
eventEvent to add

Definition at line 91 of file lv_event.cpp.

bool LV::EventQueue::poll ( Event &  event)

Polls for new events.

Looks at the event queue for new events and deletes them from the queue while loading them into the event argument.

Parameters
eventFirst queued event, if queue is not empty
Returns
true if an event was returned, false otherwise

Definition at line 80 of file lv_event.cpp.


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