#include <ucontext.hpp>
Inheritance diagram for ufo::UContext:
Public Types | |
enum | { ShareNothing = 0, ShareGL = 1, ShareLAF = 3, ShareAll = ShareLAF } |
Public Member Functions | |
virtual UContextGroup * | getContextGroup () const =0 |
virtual UContext * | getParent () const =0 |
virtual UUIManager * | getUIManager () const =0 |
virtual UGraphics * | getGraphics () const =0 |
virtual URepaintManager * | getRepaintManager () const =0 |
virtual bool | getSystemInfo (USystemInfo *info) const =0 |
virtual URootPane * | getRootPane () const =0 |
virtual void | setRootPane (URootPane *paneA)=0 |
virtual UImage * | createImage (UImageIO *imageIO)=0 |
virtual UImage * | createImage (const std::string &fileName)=0 |
virtual void | lock ()=0 |
virtual void | unlock ()=0 |
virtual void | dispatchEvent (UEvent *e)=0 |
virtual void | setEventGrabber (const USlot1< UEvent * > &slot)=0 |
virtual void | releaseEventGrabber ()=0 |
virtual USlot1< UEvent * > * | getEventGrabber () const =0 |
virtual void | connectListener (const USlot1< UEvent * > &slot)=0 |
virtual void | disconnectListener (const USlot1< UEvent * > &slot)=0 |
virtual std::list< USlot1< UEvent * > > | getListeners () const =0 |
virtual UInputMap * | getInputMap ()=0 |
virtual void | setInputMap (UInputMap *newMap)=0 |
virtual void | setDeviceBounds (const URectangle &rect)=0 |
virtual URectangle | getDeviceBounds () const =0 |
virtual void | setContextBounds (const URectangle &rect)=0 |
virtual URectangle | getContextBounds () const =0 |
virtual void | init ()=0 |
virtual void | refresh ()=0 |
virtual void | dispose ()=0 |
USignal0 & | sigRefresh () |
The UFO context provides the top level container for UFO widgets (URootPane) and is responsible for event dispatching.
An UFO context does not have to have the size of the OpenGL context.
|
Adds an event listener which receives all events. Events are not retargeted to this listener widget. Implemented in ufo::UAbstractContext.
|
|
Creates an image for this context group using the given file name. All context from this context group may access and use that image. Implemented in ufo::UAbstractContext.
|
|
Creates an image for this context group using the given image data. All context from this context group may access and use that image. Implemented in ufo::UAbstractContext.
|
|
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. Implemented in ufo::UAbstractContext.
|
|
Disposes all system resources which were created by init()
Implemented in ufo::UAbstractContext.
|
|
Returns the context group this context belongs to.
Implemented in ufo::UAbstractContext.
|
|
Returns the graphics object for this context. Implemented in ufo::UAbstractContext.
|
|
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. Implemented in ufo::UAbstractContext.
|
|
Returns the repaint manager for this context. Implemented in ufo::UAbstractContext.
|
|
every context is the owner of a root pane, the top level container.
Implemented in ufo::UAbstractContext.
|
|
Stores system specific information on the underlaying platform in the given struct. The system info struct is defined in the ufo/ufo_systeminfo.hpp header and may be overwritten in a binary compatible way by backends.
Implemented in ufo::UAbstractContext.
|
|
Returns the UIManager, which controls the Look And Feel of this context.
Implemented in ufo::UAbstractContext.
|
|
Initialize system dependent resources, creates the look and feel and the root pane. Implemented in ufo::UAbstractContext.
|
|
locks this context for drawing or Widget operations Implemented in ufo::UXContext.
|
|
Refreshes system dependent resources and emits a refresh signal. Implemented in ufo::UAbstractContext.
|
|
Sets the context bounds within the device. The corrdinates are in the UFO coordinate space. Implemented in ufo::UAbstractContext.
|
|
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. Implemented in ufo::UAbstractContext.
|
|
Implemented in ufo::UAbstractContext.
|
|
This signal should be emitted by backend implementation whenever The OpenGL resources (textures, display lists, ..) should be refreshed |
|
unlocks this context
Implemented in ufo::UXContext.
|