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

ufo::UXToolkit Class Reference

An implementation of a UFO toolkit. Currently for posix and Win32. More...

#include <uxtoolkit.hpp>

Inheritance diagram for ufo::UXToolkit:

ufo::UAbstractToolkit ufo::UToolkit ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UXToolkit (UProperties *prop)
void makeContextCurrent (UContext *contextA)
UContextgetCurrentContext () const
UDimension getScreenSize () const
UInsets getScreenInsets () const
int getScreenDepth () const
void sleep (uint32_t millis)
uint32_t getTicks () const

Detailed Description

An implementation of a UFO toolkit. Currently for posix and Win32.

Works with UXContexts and UXFrames.

See also:
UXContext

UXFrame

Author:
Johannes Schmidt


Member Function Documentation

UContext* ufo::UXToolkit::getCurrentContext  )  const [virtual]
 

Returns the last context which was made the current context by makeContextCurrent.

See also:
makeContextCurrent

Implements ufo::UToolkit.

int ufo::UXToolkit::getScreenDepth  )  const [virtual]
 

Returns:
The screen depth.

Implements ufo::UToolkit.

UInsets ufo::UXToolkit::getScreenInsets  )  const [virtual]
 

Screen insets are task bar, desktop menu bars and such.

Returns:
The screen insets like task bars.

Implements ufo::UToolkit.

UDimension ufo::UXToolkit::getScreenSize  )  const [virtual]
 

Returns:
The screen size in pixels.

Implements ufo::UToolkit.

uint32_t ufo::UXToolkit::getTicks  )  const [virtual]
 

Returns the amount of milli seconds since creating this toolkit.

Implements ufo::UToolkit.

void ufo::UXToolkit::makeContextCurrent UContext contextA  )  [virtual]
 

If the given context is a UXContext object, tries to use ux methods to make it the current context. Otherwise just marks it the current UFO context without doing anything to the underlying OpenGL context.

Implements ufo::UToolkit.

void ufo::UXToolkit::sleep uint32_t  millis  )  [virtual]
 

Wait a specified number of milliseconds before returning. delay will wait at least the specified time, but possible longer due to OS scheduling. Implemented for posix and Win32.

Note: Count on a delay granularity of at least 10 ms. Some platforms have shorter clock ticks but this is the most common.

Parameters:
millis the minimum delay in milliseconds

Implements ufo::UToolkit.


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