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.
$setResizeMode(<mode>)
Sets the resize mode of the parent widget in relation to this layout. <mode> can be one of:<br> Auto: this is the default<br> Fixed: the parent widget of this layout is resized to the "sizeHint" value and it cannot be resized by the user.<br> Minimum: the minimum size of the parent widget of this layout is set to minimumSize() and it cannot be smaller<br> FreeResize: the parent widget of this layout is not constrained at all<br>

Index, Object Classes
KVIrc 3.2.0 Documentation
Generated by kris at Sun Dec 2 00:00:57 2007