- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UXContext Class Reference

A platform-indenpendent implementation of a UFO context. More...

#include <uxcontext.hpp>

Inheritance diagram for ufo::UXContext:

ufo::UAbstractContext ufo::UContext ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UXContext (const URectangle &deviceBounds, const URectangle &contextBounds)
 UXContext (const URectangle &bounds)
bool needsRepaint ()
void pushAttributes ()
void popAttributes ()
void repaint ()
UXFramegetFrame () const
virtual void lock ()
virtual void unlock ()

Detailed Description

A platform-indenpendent implementation of a UFO context.

May be used in conjunction with the UX modul or using a custom OpenGL context. See also test/sdl.cpp and test/glut.cpp

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UXContext::UXContext const URectangle deviceBounds,
const URectangle contextBounds
 

Creates a pure context and initializes it. A valid GL context must! exist.

Parameters:
deviceBounds The bounds of the GL context
contextBounds The desired bounds of the UFO context

ufo::UXContext::UXContext const URectangle bounds  ) 
 

Creates a pure context and initializes it. A valid GL context must! exist. This time, GL context and UFO context have the same size.

Parameters:
bounds The bounds of the GL and UFO context.


Member Function Documentation

UXFrame* ufo::UXContext::getFrame  )  const
 

If this context was created by a UXFrame object, return that. Otherwise returns NULL.

virtual void ufo::UXContext::lock  )  [virtual]
 

locks this context for drawing or Widget operations

Implements ufo::UContext.

bool ufo::UXContext::needsRepaint  ) 
 

Returns true if any widgets in this context need a repaint.

void ufo::UXContext::popAttributes  ) 
 

Restores the GL and system state stored at the last call to pushAttributes.

void ufo::UXContext::pushAttributes  ) 
 

Pushes all GL and system attributes. This method does not support nested calls.

void ufo::UXContext::repaint  ) 
 

Resets the GL attributes and calls the paint method of the root pane.

virtual void ufo::UXContext::unlock  )  [virtual]
 

unlocks this context

See also:
lock

Implements ufo::UContext.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt