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

ufo::UStackWidget Class Reference

A stack widget orders its child widgets as stack. More...

#include <ustackwidget.hpp>

Inheritance diagram for ufo::UStackWidget:

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

Public Member Functions

 UStackWidget ()
 UStackWidget (int selectionMode)
void setSelectedIndex (int index)
int getSelectedIndex () const

Protected Member Functions

virtual void addImpl (UWidget *w, UObject *constraints, int index)
virtual bool removeImpl (int index)
virtual UDimension getContentsSize (const UDimension &maxSize) const

Detailed Description

A stack widget orders its child widgets as stack.

There are two types of stacks. If exclusive mode is selected, only the current selected widget is shown. Otherwise you get the whole stack shown.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UStackWidget::UStackWidget  ) 
 

Creates a stack widget which exclusively shows the selected widget.

ufo::UStackWidget::UStackWidget int  selectionMode  ) 
 

Creates a stack widget with the given selection mode. FIXME: what is a selection mode, define selection model etc.


Member Function Documentation

virtual void ufo::UStackWidget::addImpl UWidget w,
UObject constraints,
int  index
[protected, virtual]
 

Adds child widgets to this widget. This function should be overridden instead of other add functions

Parameters:
w The widget which should be added
index If index is -1, the widget will be added at the end of the container
constraints The constraints object is a Object which describes the layout options. Internally, it invokes put("layout", w); to set the property. Currently this is only used by UBorderlayout.
See also:
put

UBorderLayout

Reimplemented from ufo::UWidget.

virtual bool ufo::UStackWidget::removeImpl int  index  )  [protected, virtual]
 

Removes the widget at the given index.

Returns:
True if succesfull

Reimplemented from ufo::UWidget.


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