[kdeui Index] [kdeui Hierarchy] [Headers]
KContainerLayout is a class that will manage layout of it's child widgets. More...
#include <kcontainer.h>
Inherits: QFrame (qt)
KContainerLayout is a class that will manage layout of it's child widgets. Here is an example of using this class:
[public]
Constructs a KContainerLayout as child of parent
homogeneous | If the container should split available size by all KContainerLayoutItem in equal parts |
name | The name of the widget |
allowLines | Flags @see QFrame#QFrame |
parent | The parent widget of the KContainerLayout |
orientation | The orientation of the container, either KContainerLayout::Horizontal or KContainer::Vertical |
spacing | The space to add between each widget and between the first/last and the borders |
f | Flags @see QFrame#QFrame |
[public virtual]
The destructor
[public]
Returns the number of widgets inside this container
[public]
Pack one widget to the start of the container after the previously packed on start widgets
p | Padding that should be used as the borders in each side of the widget |
e | If the widget should use the whole size allocated to it |
f | If the widget should be sized to fill the whole space allocated to it (only makes sense with Expand=TRUE) |
w | The widget to be packed |
[public]
Pack one widget to the end of the container after the previously packed on end widgets
p | Padding that should be used as the borders in each side of the widget |
e | If the widget should use the whole size allocated to it |
f | If the widget should be sized to fill the whole space allocated to it (only makes sense with Expand=TRUE) |
w | The widget to be packed |
[public]
Sets the orientation of the container, one of KContainerLayout::Horizontal or KContainer::Vertical
[public]
Sets the container to use the same size to each widget he contains (TRUE) or not (FALSE) When homogeneous is true all widgets will be packed as if they had the Expand set to TRUE @see KContainerLayout#packStart @see KContainer#packEnd
[public]
Sets the starting offset for this container @see _startOffset
[public]
Sets the ending offset for this container @see _endOffset
[public]
Returns the current orientation of the container @see KContainerLayout#setOrientation
[public]
Returns the current homogeneous state of the container @see KContainerLayout#setHomogeneous
[public]
Returns the current spacing of the container @see KContainerLayout#setSpacing
[public]
Returns the starting offset for this container @see _startOffset
[public]
Returns the ending offset for this container @see _endOffset
[public]
Resizes the container to be as small as necessary to display all widgets
[protected]
Calculates the size necessary to display all widgets
[protected]
Returns the size necessary for the widget represented by this KContainerLayoutItem
[protected]
Reposition all widgets on the container.
[protected]
Returns the number of widgets that share the extra space on the container.
[protected]
Calculate our size hint based on the sizeHint() of all out widgets, on our properties - expand and homogeneous, and on the KContainerLayoutItem properties.
[protected]
Return the size necessary by the largest widget on the container.
[protected]
Returns the ideal size for the widget represented by this KContainerLayoutItem.
[protected]
Return TRUE if this is an horizontal container.
[protected virtual]
Resizes the widget and repositions all widgets.
[protected virtual]
Used to filter resize events from our parent if it isn't a KContainerLayout.
[protected virtual]
Returns our size hint. The size necessary to display this container.
[protected]
Keeps the orientation of the container one of KContainerLayout::Horizontal or KContainer::Vertical
[protected]
Should we split our size in equal parts by all the widgets?
[protected]
Space to be used between widgets and between the first/last widget and the container borders.
[protected]
Space between the starting border and the first widget
[protected]
Space between the last widget and ending border
[protected]
width or height we have for each widget
[protected]
our sizeHint that we will return on our implementation of sizeHint()
| Kdoc |