|
|
|
|
|
Description |
This abstract container class is instatiated by using HBox or VBox. It
supplies all methods to add and remove children.
|
|
Synopsis |
|
|
|
Documentation |
|
data Packing |
packing parameters of a widget
| Constructors | PackRepel | | PackGrow | | PackNatural | |
| Instances | |
|
|
boxPackStart :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO () |
Insert a widget at the beginning of the box
container.
- The Packing parameter determines how the child behaves in the
horizontal or vertical way in an HBox or VBox, respectively.
PackNatural means the child is as big as it reqests. It will
move to the left in an HBox or to the top in an
VBox if there is more space availble.
All children
that have choosen PackRepel for p will be padded
on both sides with
additional space. PackGrow will increase the size of the
so that is covers the available space.
|
|
boxPackEnd :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO () |
Insert a widget at the end of the box container.
- See boxPackStart. The option Natural will
move a child to the right in an HBox or to the bottom in an
VBox if there is more space availble.
|
|
boxPackStartDefaults :: (BoxClass b, WidgetClass w) => b -> w -> IO () |
Like boxPackStart but uses the
default parameters PackRepel and 0 for padding.
|
|
boxPackEndDefaults :: (BoxClass b, WidgetClass w) => b -> w -> IO () |
Like boxPackEnd but uses the
default parameters PackRepel and 0 for padding.
|
|
boxGetHomogeneous :: BoxClass b => b -> IO Bool |
Get whether the box is homogeneous.
|
|
boxSetHomogeneous :: BoxClass b => b -> Bool -> IO () |
Set if all children should be spread homogeneous
within the box.
|
|
boxGetSpacing :: BoxClass b => b -> IO Int |
Retrieves the standard spacing between widgets.
|
|
boxSetSpacing :: BoxClass b => b -> Int -> IO () |
Set the standard spacing between two children.
- This space is in addition to the padding parameter that is given for each
child.
|
|
boxReorderChild :: (BoxClass b, WidgetClass w) => b -> w -> Int -> IO () |
Move child to a new position
(counted from 0) in the box.
|
|
boxQueryChildPacking :: (BoxClass b, WidgetClass w) => b -> w -> IO (Packing, Int, PackType) |
Query the packing parameter of a child.
- Returns information on the behaviour if free space is available
(in Packing), the additional padding for this widget and
if the widget
was inserted at the start or end of the container (PackType).
|
|
boxSetChildPacking :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> PackType -> IO () |
Set the packing parameter of a child.
|
|
Produced by Haddock version 0.6 |