#include <uabstractdisplay.hpp>
Inheritance diagram for ufo::UAbstractDisplay:
Public Member Functions | |
virtual UImage * | createImage (const std::string fileName) |
virtual UImage * | createImage (UImageIO *io) |
virtual void | addVolatileData (UVolatileData *vdata) |
virtual void | removeVolatileData (UVolatileData *vdata) |
virtual void | pushEvent (UEvent *e) |
virtual bool | dispatchEvent (UEvent *e) |
virtual bool | dispatchEvents (unsigned int nevents) |
virtual bool | dispatchEvents () |
virtual UEvent * | getCurrentEvent () const |
virtual int | getEventCount () const |
virtual UEvent * | peekEvent () const |
virtual UEvent * | peekEvent (UEvent::Type type) const |
virtual UEvent * | pollEvent () |
virtual UMod_t | getModState () const |
virtual UMod_t | getMouseState (int *x, int *y) const |
Protected Member Functions | |
void | setModState (UMod_t modifiers) |
void | checkTimerEvents () |
This class is not part of the official UFO API and may be changed without warning.
|
Dispatches immediately the given event without pushing it to the event queue. Updates the internal mouse and key states.
Implements ufo::UDisplay.
|
|
Dispatches all pending events of the event queues.
Implements ufo::UDisplay.
|
|
Dispatches nevents events to the receiver contexts. If the current event is a quit event, it returns immediately true without dispatching more events.
Implements ufo::UDisplay.
|
|
Returns the event which is currently dispatched by this display object. Returns NULL if no event is currently dispatched. Implements ufo::UDisplay.
|
|
Returns the number of pending events. Implements ufo::UDisplay.
|
|
Returns the current state of the modifier keys (like CRTL, ALT, ..). Please note that the current mod state may differ from the current event you are processing. The current mod state is determinded by the last pushed event.
Implements ufo::UDisplay.
|
|
Returns the current button state as modifier mask. x and y are set to the current mouse position. Both may be NULL. The current mouse state is determinded by the last pushed event.
Implements ufo::UDisplay.
|
|
Returns the first event on the event queue of the given type without removeing it. Implements ufo::UDisplay.
|
|
Returns the first event on the event queue without removeing it. Implements ufo::UDisplay.
|
|
Returns the first event on the event queue and removes it from the event queue. The user takes control over this event and is responsible for unreferencing and deallocating. Implements ufo::UDisplay.
|
|
Adds e to the event queue. Updates the internal mouse and key states. Implements ufo::UDisplay.
|
|
Manually sets the modifier state. Reimplemented in ufo::UXDisplay.
|