# layout class

Manages child widget geometry

Inherits
object
Description

The layout is a geometry management tool for child widgets. You create a layout , give it some widgets to manage and it will layout them automatically.
The parent of the layout must be the widget for which child widget geometries have to be managed. A layout is a grid of NxM cells in which you insert child widgets with $addWidget().
Widgets that must span multiple cells can be added to the layout with $addMultiCellWidget().

Functions

`$addWidget(<widget>,<row>,<column>)`
Adds a widget to this layout placing it at position <row>,<column> in the grid
`$addMultiCellWidget(<widet>,<from_row>,<to_row>,<from_col>,<to_col>)`
Adds a widget to this layout spanning multiple grid cells
`$setRowStretch(<row>,<stretch_value>)`
Sets the stretch value for a particular row of this layout. The <stretch_value> must be a positive integer. The rows with bigger stretch values will take more space in the layout.
`$setColStretch(<column>,<stretch_value>)`
Sets the stretch value for a particular column in this layout. The <stretch_value> must be a positive integer. The rows with bigger stretch values will take more space in the layout.
`$addRowSpacing(<row>,<spacing>)`
Sets the minimum height of the specified <row> to <spacing> which must be a positive integer
`$addColSpacing(<column>,<spacing>)`
Sets the minimum width of the specigfied <column> to <spacing> which must be a positive integer
`$setSpacing(<value>)`
Sets the default spacing of the widgets in pixels
`$setMargin(<value>)`
Sets the dimension of the layout margin : the distance from the border to the outermost child widget edges.

Main index, Object class index

KVirc 3.0.0 documentation
Generated by root at Thu Apr 29 12:41:05 2004