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

ufo::UXFrame Class Reference

A platform-independent representation of system windows. More...

#include <uxframe.hpp>

Inheritance diagram for ufo::UXFrame:

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

Public Member Functions

void swapBuffers ()
void makeContextCurrent ()
UVideoDevicegetVideoDevice () const
UXContextgetContext () const
URootPanegetRootPane () const
UWidgetgetContentPane () const
virtual void repaint (bool force=false)
void setVisible (bool vis)
bool isVisible ()
void setDepth (int depth)
int getDepth () const
void setTitle (std::string title)
std::string getTitle ()
void setFullScreened (bool b)
bool isFullScreened () const
void setFrameStyle (uint32_t frameStyle)
FrameStyle getFrameStyle () const
void setResizable (bool b)
bool isResizable () const
void setInitialFrameState (uint32_t initialState)
FrameState getFrameState () const
void pack ()
void setSize (int w, int h)
void setSize (const UDimension &d)
UDimension getSize () const
void setLocation (int x, int y)
void setLocation (const UPoint &d)
UPoint getLocation () const
void setBounds (int x, int y, int w, int h)
void setBounds (const URectangle &rect)
URectangle getBounds () const
void makeScreenShot (std::string fileNameA)
USignal1< UXFrame * > & sigMoved ()
USignal1< UXFrame * > & sigResized ()

Protected Member Functions

 UXFrame (UVideoDevice *device)
void openContext ()
void closeContext ()

Detailed Description

A platform-independent representation of system windows.

Use a UXDisplay object to create frames. Note: You can use LibUFO without using frames. See test/sdl.cpp and test/glut.cpp

See also:
UXDisplay
Author:
Johannes Schmidt


Member Function Documentation

URectangle ufo::UXFrame::getBounds  )  const
 

returns the bounds of the frame

FrameState ufo::UXFrame::getFrameState  )  const
 

Returns the current frame state, or - if not visible - the initial frame state.

UPoint ufo::UXFrame::getLocation  )  const
 

Returns the current location of the frame. Currently not supported.

UDimension ufo::UXFrame::getSize  )  const
 

returns the size of the frame

std::string ufo::UXFrame::getTitle  ) 
 

Returns current frame title.

void ufo::UXFrame::makeContextCurrent  ) 
 

Makes the underlying GL context the current context.

void ufo::UXFrame::makeScreenShot std::string  fileNameA  ) 
 

Dumps the frame content to the given file. The file must have an extension supported by UImageIO.

See also:
UImageIO

void ufo::UXFrame::pack  ) 
 

sets the frame size to the preferred size. computes the preferred size of the root pane and resizes the frame to the correct size.

virtual void ufo::UXFrame::repaint bool  force = false  )  [virtual]
 

Repaints the whole frame as long as a repaint was requested by one of the widgets.

Parameters:
force If true, forces a repaint

void ufo::UXFrame::setFrameStyle uint32_t  frameStyle  ) 
 

Sets frame decoration.

See also:
FrameStyle

void ufo::UXFrame::setInitialFrameState uint32_t  initialState  ) 
 

Sets the initial state of the frame. This method has no effect on visible frames.

See also:
FrameState

void ufo::UXFrame::setTitle std::string  title  ) 
 

Sets the frame title.

void ufo::UXFrame::swapBuffers  ) 
 

Swaps the GL buffers of this frame.


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