DzGridLayout Class Reference
[Interface Layout Objects]

DAZ Script grid layout class. More...

Inheritance diagram for DzGridLayout:

DzLayout List of all members.

Methods

void addLayout (DzLayout layout, Number row, Number col, Number rowSpan=1, Number colSpan=1)
void addMultiCellLayout (DzLayout layout, Number fromRow, Number toRow, Number fromCol, Number toCol)
void addMultiCellWidget (DzWidget widget, Number fromRow, Number toRow, Number fromCol, Number toCol)
void addWidget (DzWidget widget, Number row, Number col, Number rowSpan=1, Number colSpan=1)
Number colSpacing (Number col) const
Number colStretch (Number col) const
Number rowSpacing (Number row) const
Number rowStretch (Number row) const
void setColSpacing (Number col, Number minSize)
void setColStretch (Number col, Number stretch)
void setRowSpacing (Number row, Number minSize)
void setRowStretch (Number row, Number stretch)

Constructors

 DzGridLayout (DzLayout parent)
 DzGridLayout (DzWidget parent)

Detailed Description

DAZ Script grid layout class.


Constructor & Destructor Documentation

DzGridLayout::DzGridLayout ( DzWidget  parent  ) 

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

DzGridLayout::DzGridLayout ( DzLayout  parent  ) 

Creates a grid layout as a sub-layout of the given layout


Member Function Documentation

void DzGridLayout::addLayout ( DzLayout  layout,
Number  row,
Number  col,
Number  rowSpan = 1,
Number  colSpan = 1 
)

Adds the given layout to the items managed by this layout

Parameters:
layout The layout to add to this layout
row The row to insert the layout into.
col The column to insert the layout into.
rowspan The number of rows the layout should span (1 if not specified)
colspan The number of columns the layout should span (1 if not specified)

void DzGridLayout::addMultiCellLayout ( DzLayout  layout,
Number  fromRow,
Number  toRow,
Number  fromCol,
Number  toCol 
)

Deprecated:
Use addLayout() instead

void DzGridLayout::addMultiCellWidget ( DzWidget  widget,
Number  fromRow,
Number  toRow,
Number  fromCol,
Number  toCol 
)

Deprecated:
Use addWidget() instead

void DzGridLayout::addWidget ( DzWidget  widget,
Number  row,
Number  col,
Number  rowSpan = 1,
Number  colSpan = 1 
)

Adds the given widget to the items managed by this layout

Parameters:
widget The widget to add to the layout
row The row to insert the widget into.
col The column to insert the widget into.
rowspan The number of rows the widget should span (1 if not specified)
colspan The number of columns the widget should span (1 if not specified)

Number DzGridLayout::colSpacing ( Number  col  )  const

Returns:
The the minimum width for the given column

Number DzGridLayout::colStretch ( Number  col  )  const

Returns:
The relative amount of stretch for the given column

Number DzGridLayout::rowSpacing ( Number  row  )  const

Returns:
The the minimum height for the given row

Number DzGridLayout::rowStretch ( Number  row  )  const

Returns:
The relative amount of stretch for the given row

void DzGridLayout::setColSpacing ( Number  col,
Number  minSize 
)

Sets the minimum width for the given column

void DzGridLayout::setColStretch ( Number  col,
Number  stretch 
)

Sets the relative amount of stretch for the given column

void DzGridLayout::setRowSpacing ( Number  row,
Number  minSize 
)

Sets the minimum height for the given row

void DzGridLayout::setRowStretch ( Number  row,
Number  stretch 
)

Sets the relative amount of stretch for the given row


Generated on Thu Sep 24 12:21:12 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.