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

ufo::UFlowLayout Class Reference

Layouts all child widgets in one continous flow from left to right, if necessary in several rows. More...

#include <uflowlayout.hpp>

Inheritance diagram for ufo::UFlowLayout:

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

Public Member Functions

 UFlowLayout ()
 UFlowLayout (int hgap, int vgap)
 UFlowLayout (int hgap, int vgap, Alignment hAlign, Alignment vAlign)
UDimension getPreferredLayoutSize (const UWidget *parent, const UDimension &maxSize) const
void layoutContainer (const UWidget *parent)
virtual void setHorizontalAlignment (Alignment newHAlign)
virtual Alignment getHorizontalAlignment ()
virtual void setVerticalAlignment (Alignment newVAlign)
virtual Alignment getVerticalAlignment ()

Protected Attributes

int m_hgap
int m_vgap

Detailed Description

Layouts all child widgets in one continous flow from left to right, if necessary in several rows.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UFlowLayout::UFlowLayout  ) 
 

Creates a new flow layout with horizontal and vertical gap of 4 and using the alignment of the container.

ufo::UFlowLayout::UFlowLayout int  hgap,
int  vgap
 

Creates a new flow layout with the given horizontal and vertical gap and using the alignment of the container.


Member Function Documentation

virtual Alignment ufo::UFlowLayout::getHorizontalAlignment  )  [virtual]
 

Returns the horizontal alignment of widgets within one row

UDimension ufo::UFlowLayout::getPreferredLayoutSize const UWidget parent,
const UDimension maxSize
const [virtual]
 

Returns:
The preferred size of the container using the given maximum dimension.

Implements ufo::ULayoutManager.

virtual Alignment ufo::UFlowLayout::getVerticalAlignment  )  [virtual]
 

Returns the vertical alignment of widgets within one row

void ufo::UFlowLayout::layoutContainer const UWidget parent  )  [virtual]
 

Relayouts all child widgets within the given container.

Implements ufo::ULayoutManager.

virtual void ufo::UFlowLayout::setHorizontalAlignment Alignment  newHAlign  )  [virtual]
 

Sets the horizontal alignment of widgets within one row

virtual void ufo::UFlowLayout::setVerticalAlignment Alignment  newVAlign  )  [virtual]
 

Sets the vertical alignment of widgets within one row


Member Data Documentation

int ufo::UFlowLayout::m_hgap [protected]
 

the horizontal gap between widgets

int ufo::UFlowLayout::m_vgap [protected]
 

the vetical gap between widgets


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