#include <udisplay.hpp>
Inheritance diagram for ufo::UDisplay:
Public Member Functions | |
virtual std::vector< UContext * > | getContexts () const =0 |
virtual UImage * | createImage (const std::string fileName)=0 |
virtual UImage * | createImage (UImageIO *io)=0 |
virtual void | addVolatileData (UVolatileData *vdata)=0 |
virtual void | removeVolatileData (UVolatileData *vdata)=0 |
virtual void | pumpEvents ()=0 |
virtual void | pushEvent (UEvent *e)=0 |
virtual bool | dispatchEvent (UEvent *e)=0 |
virtual bool | dispatchEvents (unsigned int nevents)=0 |
virtual bool | dispatchEvents ()=0 |
virtual UEvent * | getCurrentEvent () const =0 |
virtual int | getEventCount () const =0 |
virtual UEvent * | peekEvent () const =0 |
virtual UEvent * | peekEvent (UEvent::Type type) const =0 |
virtual UEvent * | pollEvent ()=0 |
virtual UMod_t | getModState () const =0 |
virtual UMod_t | getMouseState (int *x, int *y) const =0 |
Static Public Member Functions | |
UDisplay * | getDefault () |
Static Protected Member Functions | |
void | setDefault (UDisplay *defaultDisplay) |
The display object is responsible for creating the video driver (depending on the arguments given to the constructor) and to handle the system events send to the created video devices.
Usually there exists only one implementation of a Display.
All native ressources are loaded by the display object. For example OpenGL textures and video devices.
|
Dispatches immediately the given event without pushing it to the event queue. Updates the internal mouse and key states.
Implemented in ufo::UAbstractDisplay.
|
|
Dispatches all pending events of the event queues.
Implemented in ufo::UAbstractDisplay.
|
|
Dispatches nevents events to the receiver contexts. If the current event is a quit event, it returns immediately true without dispatching more events.
Implemented in ufo::UAbstractDisplay.
|
|
Returns a vector with all contextes which were registered at this display object. Implemented in ufo::UXDisplay.
|
|
Returns the event which is currently dispatched by this display object. Returns NULL if no event is currently dispatched. Implemented in ufo::UAbstractDisplay.
|
|
Returns the default display. |
|
Returns the number of pending events. Implemented in ufo::UAbstractDisplay.
|
|
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.
Implemented in ufo::UAbstractDisplay.
|
|
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.
Implemented in ufo::UAbstractDisplay.
|
|
Returns the first event on the event queue of the given type without removeing it. Implemented in ufo::UAbstractDisplay.
|
|
Returns the first event on the event queue without removeing it. Implemented in ufo::UAbstractDisplay.
|
|
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. Implemented in ufo::UAbstractDisplay.
|
|
Pumps system events to the event queue. May be a no-op on some systems. Implemented in ufo::UXDisplay.
|
|
Adds e to the event queue. Updates the internal mouse and key states. Implemented in ufo::UAbstractDisplay.
|
|
Should be used by backend implementation to set a default display. |