nux-0.9.48
|
#include <Nux/Layout.h>
Public Member Functions | |
SpaceLayout () | |
SpaceLayout (int minWidth, int maxWidth, int minHeight, int maxHeight) | |
~SpaceLayout () | |
virtual bool | FindWidget (Area *WidgetObject) const |
virtual bool | IsEmpty () const |
virtual bool | IsSpaceLayout () const |
virtual void | AddLayout (Layout *, unsigned int stretchFactor=1, MinorDimensionPosition minor_position=eAbove, MinorDimensionSize minor_size=eFull, float percentage=100.0f) |
virtual void | AddView (Area *baseobject, unsigned int stretchFactor=1, MinorDimensionPosition positioning=eAbove, MinorDimensionSize extend=eFull, float percentage=100.0f) |
Add an object to the layout. | |
virtual void | AddSpace (unsigned int width, unsigned int stretchFactor=0) |
virtual bool | CanFocus () |
virtual long | ComputeLayout2 () |
virtual void | ComputePosition2 (float offsetX, float offsetY) |
Protected Member Functions | |
Area * | Find (long handle) |
nux::SpaceLayout::SpaceLayout | ( | ) | [inline] |
nux::SpaceLayout::SpaceLayout | ( | int | minWidth, |
int | maxWidth, | ||
int | minHeight, | ||
int | maxHeight | ||
) | [inline] |
References nux::Area::SetMaximumSize(), and nux::Area::SetMinimumSize().
nux::SpaceLayout::~SpaceLayout | ( | ) | [inline] |
virtual void nux::SpaceLayout::AddLayout | ( | Layout * | , |
unsigned int | stretchFactor = 1 , |
||
MinorDimensionPosition | minor_position = eAbove , |
||
MinorDimensionSize | minor_size = eFull , |
||
float | percentage = 100.0f |
||
) | [inline, virtual] |
Reimplemented from nux::Layout.
virtual void nux::SpaceLayout::AddSpace | ( | unsigned int | width, |
unsigned int | stretchFactor = 0 |
||
) | [inline, virtual] |
Reimplemented from nux::Layout.
virtual void nux::SpaceLayout::AddView | ( | Area * | baseobject, |
unsigned int | stretchFactor = 1 , |
||
MinorDimensionPosition | positioning = eAbove , |
||
MinorDimensionSize | extend = eFull , |
||
float | percentage = 100.0f |
||
) | [inline, virtual] |
Add an object to the layout.
Add an object to the layout. A baseobject minor dimension with respect to a layout object is the dimension opposite to the layout flow. A baseobject major dimension with respect to a layout object is the dimension aligned with the layout flow. A layout object minor dimension is the dimension opposite to the layout flow. A layout object major dimension is the dimension aligned with the layout flow.
Add an object to the layout. The added object get its size and position managed by the layout. When a baseobject is added with a stretches factor equal to 0, its major dimension assumes its minimum value. For instance, if the layout is a vertical layout and the added object has a stretch factor equal 0, then during the layout, the added object height will be set to its minimum value using ApplyMinHeight().
The positioning parameter controls how the layout will place the object within itself. A vertical layout object controls the horizontal positioning of its children baseobject, While an horizontal layout object controls the vertical positioning of its children baseobject.
The extend parameter controls how much size the baseobject minor dimension gets from the layout minor dimension. See MinorDimensionSize.
/param baseobject The object that is being added. /param stretchFactor This value controls how the layout object share space between its children baseobject. /param positioning Controls how the layout position the object. /param extend Controls the object minor dimension size. /param percentage Controls the object minor dimension size in percentage of the layout minor dimension size.
Reimplemented from nux::Layout.
virtual bool nux::SpaceLayout::CanFocus | ( | ) | [inline, virtual] |
Reimplemented from nux::Focusable.
virtual long nux::SpaceLayout::ComputeLayout2 | ( | ) | [inline, virtual] |
Reimplemented from nux::Area.
virtual void nux::SpaceLayout::ComputePosition2 | ( | float | offsetX, |
float | offsetY | ||
) | [inline, virtual] |
Reimplemented from nux::Area.
Area* nux::SpaceLayout::Find | ( | long | handle | ) | [protected] |
virtual bool nux::SpaceLayout::FindWidget | ( | Area * | WidgetObject | ) | const [inline, virtual] |
Reimplemented from nux::Layout.
virtual bool nux::SpaceLayout::IsEmpty | ( | ) | const [inline, virtual] |
Reimplemented from nux::Layout.
virtual bool nux::SpaceLayout::IsSpaceLayout | ( | ) | const [inline, virtual] |
Reimplemented from nux::Layout.