#include <uabstractcontext.hpp>
Inheritance diagram for ufo::UAbstractContext:
Public Member Functions | |
UAbstractContext (UAbstractContext *parent) | |
virtual UContextGroup * | getContextGroup () const |
virtual UContext * | getParent () const |
virtual UUIManager * | getUIManager () const |
virtual UGraphics * | getGraphics () const |
virtual URepaintManager * | getRepaintManager () const |
virtual bool | getSystemInfo (USystemInfo *info) const |
virtual URootPane * | getRootPane () const |
virtual void | setRootPane (URootPane *paneA) |
virtual UImage * | createImage (UImageIO *imageIO) |
virtual UImage * | createImage (const std::string &fileName) |
virtual void | dispatchEvent (UEvent *e) |
virtual void | setEventGrabber (const USlot1< UEvent * > &slot) |
virtual void | releaseEventGrabber () |
virtual USlot1< UEvent * > * | getEventGrabber () const |
virtual void | connectListener (const USlot1< UEvent * > &slot) |
virtual void | disconnectListener (const USlot1< UEvent * > &slot) |
virtual std::list< USlot1< UEvent * > > | getListeners () const |
virtual UInputMap * | getInputMap () |
virtual void | setInputMap (UInputMap *newMap) |
virtual void | setDeviceBounds (const URectangle &rect) |
virtual URectangle | getDeviceBounds () const |
virtual void | setContextBounds (const URectangle &rect) |
virtual URectangle | getContextBounds () const |
virtual void | init () |
virtual void | refresh () |
virtual void | dispose () |
Protected Member Functions | |
virtual UGraphics * | createGraphics () |
virtual URepaintManager * | createRepaintManager () |
virtual void | fireMouseEvent (UMouseEvent *e) |
virtual void | fireMouseMotionEvent (UMouseEvent *e) |
virtual void | fireMouseWheelEvent (UMouseWheelEvent *e) |
virtual void | fireKeyEvent (UKeyEvent *e) |
Protected Attributes | |
UContextGroup * | m_contextGroup |
UUIManager * | m_uiManager |
URootPane * | m_rootPane |
This class is not part of the official UFO API and may be changed without warning.
|
Creates a new abstract context with parent as its logical parent, i.e. both contexts share their data. |
|
Adds an event listener which receives all events. Events are not retargeted to this listener widget. Implements ufo::UContext.
|
|
Creates the graphics object for this GL context. |
|
Creates an image for this context group using the given file name. All context from this context group may access and use that image. Implements ufo::UContext.
|
|
Creates an image for this context group using the given image data. All context from this context group may access and use that image. Implements ufo::UContext.
|
|
Creates the repaint manager object for this GL context. |
|
This functions dispatches events to child widgets of the root pane. It should be used by an backend to deliver events to the widgets. It is virtual so that you can implement your own event dispatcher. Implements ufo::UContext.
|
|
Disposes all system resources which were created by init()
Implements ufo::UContext.
|
|
Constructs a key mouse event from the given event and modifies it according to the context properties. Sends it to an appropriate widget using send. |
|
Constructs a new mouse event from the given event and modifies it according to the context properties. Sends it to an appropriate widget using send. |
|
Constructs a new mouse event from the given event and modifies it according to the context properties. Sends it to an appropriate widget using send. |
|
Constructs a new mouse wheel event from the given event and modifies it according to the context properties. Sends it to an appropriate widget using send. |
|
Returns the context group this context belongs to.
Implements ufo::UContext.
|
|
Returns the graphics object for this context. Implements ufo::UContext.
|
|
Returns the (logical) parent Context. A context can share its data with a parent context, i.e. the Look And Feel and (if the contexts belong to different OpenGL Contexts) OpenGL data like Texture Objects, Display Lists, .. May return NULL, if no parent was set. Implements ufo::UContext.
|
|
Returns the repaint manager for this context. Implements ufo::UContext.
|
|
every context is the owner of a root pane, the top level container.
Implements ufo::UContext.
|
|
Returns false as default. Should be overriden by backends which support system info. Implements ufo::UContext.
|
|
Returns the UIManager, which controls the Look And Feel of this context.
Implements ufo::UContext.
|
|
Initialize system dependent resources, creates the look and feel and the root pane. Implements ufo::UContext.
|
|
Refreshes system dependent resources and emits a refresh signal. Implements ufo::UContext.
|
|
Sets the context bounds within the device. The corrdinates are in the UFO coordinate space. Implements ufo::UContext.
|
|
Sets an event grabber which receives all events and prevents that any other widget gets those events. The source widget is always the root pane of this context. MouseEntered and MouseExited events are not generated for grabbed events. Implements ufo::UContext.
|
|
Implements ufo::UContext.
|