nux-1.16.0
nux::SpaceLayout Class Reference
Inheritance diagram for nux::SpaceLayout:
nux::Layout nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Introspectable

List of all members.

Public Member Functions

 SpaceLayout (NUX_FILE_LINE_PROTO)
 SpaceLayout (int minWidth, int maxWidth, int minHeight, int maxHeight, NUX_FILE_LINE_PROTO)
virtual bool FindWidget (Area *WidgetObject) const
virtual bool IsEmpty () const
virtual void AddLayout (Layout *, unsigned int stretchFactor=1, MinorDimensionPosition minor_position=eAbove, MinorDimensionSize minor_size=eFull, float percentage=100.0f, LayoutPosition index=NUX_LAYOUT_END)
virtual void AddView (Area *baseobject, unsigned int stretchFactor=1, MinorDimensionPosition positioning=eAbove, MinorDimensionSize extend=eFull, float percentage=100.0f, LayoutPosition index=NUX_LAYOUT_END)
 Add an object to the layout.
virtual void AddSpace (unsigned int width, unsigned int stretchFactor=0, LayoutPosition index=NUX_LAYOUT_END)
virtual bool CanFocus ()
virtual long ComputeLayout2 ()
virtual void ComputePosition2 (float offsetX, float offsetY)

Protected Member Functions

AreaFind (long handle)

Detailed Description

Definition at line 277 of file Layout.h.


Member Function Documentation

virtual void nux::SpaceLayout::AddView ( Area bo,
unsigned int  stretchFactor = 1,
MinorDimensionPosition  minor_position = eAbove,
MinorDimensionSize  minor_size = eFull,
float  percentage = 100.0f,
LayoutPosition  index = NUX_LAYOUT_END 
) [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. /param index Controls the object position in 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 minor_position parameter controls how the layout will place the object within itself. A vertical layout object controls the horizontal positioning of its children baseobjects, While an horizontal layout object controls the vertical positioning of its children baseobjects.

The minor_size 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 minor_position Controls how the layout position the object. /param minor_size Controls the object minor dimension size. /param percentage Controls the object minor dimension size in percentage of the layout minor dimension size. /param index Controls the object position in the layout children.

Reimplemented from nux::Layout.

Definition at line 312 of file Layout.h.

    {
      // the baseObject is provided via the constructor.
    };

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends