|
|
|
|
|
Description |
SizeGroup provides a mechanism for grouping a number of widgets together so
they all request the same amount of space. This is typically useful when you
want a column of widgets to have the same size, but you can't use a Table
widget.
|
|
Synopsis |
|
|
|
Documentation |
|
sizeGroupNew :: SizeGroupMode -> IO SizeGroup |
Create a new SizeGroup.
|
|
data SizeGroupMode |
Constructors | SizeGroupNone | | SizeGroupHorizontal | | SizeGroupVertical | | SizeGroupBoth | |
| Instances | |
|
|
sizeGroupSetMode :: SizeGroupClass obj => obj -> SizeGroupMode -> IO () |
Sets the SizeGroupMode of the size group. The mode of the size group
determines whether the widgets in the size group should all have the same
horizontal requisition sizeGroupModeHorizontal all have the same vertical
requisition sizeGroupModeVertical, or should all have the same requisition
in both directions sizeGroupModeBoth.
|
|
sizeGroupGetMode :: SizeGroupClass obj => obj -> IO SizeGroupMode |
Gets the current mode of the size group.
|
|
sizeGroupAddWidget :: (SizeGroupClass obj, WidgetClass widget) => obj -> widget -> IO () |
Adds a widget to a SizeGroup. In the future, the requisition of the widget
will be determined as the maximum of its requisition and the requisition of
the other widgets in the size group. Whether this applies horizontally,
vertically, or in both directions depends on the mode of the size group. See
sizeGroupSetMode.
|
|
sizeGroupRemoveWidget :: (SizeGroupClass obj, WidgetClass widget) => obj -> widget -> IO () |
Removes the widget from the SizeGroup.
|
|
Produced by Haddock version 0.6 |