User Tools

Site Tools


DzBoxLayout

DAZScript wrapper for QBoxLayout.

More...

Inherits :

Inherited By : DzHBoxLayout and DzVBoxLayout

Enumerations

Properties

DAZ Script
Directiondirection

Constructors

DAZ Script
DzBoxLayout ( DzWidget parent, Direction direction=LeftToRight )
DzBoxLayout ( DzLayout parent, Direction direction=LeftToRight )

Methods

DAZ Script
voidaddLayout ( DzLayout layout, Number stretch=0 )
voidaddSpacing ( Number size )
voidaddStretch ( Number stretch=0 )
voidaddStrut ( Number size )
voidaddWidget ( DzWidget widget, Number stretch=0 )

Detailed Description

TODO: Add detailed description.

Enumerations


: Direction

Used to determine the direction of a box layout.

  • LeftToRight - Horizontal from left to right.
  • RightToLeft - Horizontal from right to left.
  • TopToBottom - Vertical from top to bottom.
  • BottomToTop - Vertical from bottom to top.

Properties


Direction : direction

The direction of the layout

Constructors


DzBoxLayout( DzWidget parent, Direction direction=LeftToRight )

Creates a box layout that manages the children widgets of the given parent widget


DzBoxLayout( DzLayout parent, Direction direction=LeftToRight )

Creates a vertical box layout as a sub-layout of the given layout

Methods


void : addLayout( DzLayout layout, Number stretch=0 )

Adds the given layout to the items managed by this layout

Parameter(s):

  • item - The layout to add
  • stretch - The stretch factor to set for the layout

void : addSpacing( Number size )

Adds a non-stretchable space with size size to the end of this layout


void : addStretch( Number stretch=0 )

Adds a stretchable space with stretch factor stretch to the end of this layout


void : addStrut( Number size )

Limits the minimum dimension perpendicular to the direction the box, to size


void : addWidget( DzWidget widget, Number stretch=0 )

Adds the given widget to the items managed by this layout

Parameter(s):

  • item - The widget to add
  • stretch - The stretch factor to set for the widget