#include <uflowlayout.hpp>
Inheritance diagram for ufo::UFlowLayout:
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 |
|
Creates a new flow layout with horizontal and vertical gap of 4 and using the alignment of the container. |
|
Creates a new flow layout with the given horizontal and vertical gap and using the alignment of the container. |
|
Returns the horizontal alignment of widgets within one row |
|
Implements ufo::ULayoutManager.
|
|
Returns the vertical alignment of widgets within one row |
|
Relayouts all child widgets within the given container. Implements ufo::ULayoutManager.
|
|
Sets the horizontal alignment of widgets within one row |
|
Sets the vertical alignment of widgets within one row |
|
the horizontal gap between widgets |
|
the vetical gap between widgets |