Name

Box —

This abstract container class is instatiated by using HBox or VBox. It supplies all methods to add and remove children.

Synopsis

boxGetSpacing:: BoxClass b => b -> IO Int
boxPackEnd:: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO ()
boxPackEndDefaults:: (BoxClass b, WidgetClass w) => b -> w -> IO ()
boxPackStart:: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO ()
boxPackStartDefaults:: (BoxClass b, WidgetClass w) => b -> w -> IO ()
boxQueryChildPacking:: (BoxClass b, WidgetClass w) => b -> w -> IO (Packing,Int,PackType)
boxReorderChild:: (BoxClass b, WidgetClass w) => b -> w -> Int -> IO ()
boxSetChildPacking:: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> PackType -> IO ()
boxSetHomogeneous:: BoxClass b => b -> Bool -> IO ()
boxSetSpacing:: BoxClass b => b -> Int -> IO ()

Methods

boxGetSpacing

Retrieves the standard spacing between widgets.

boxGetSpacing:: b:: IO Int
b

boxPackEnd

Insert a widget at the end of the box container.

boxPackEnd:: b:: w:: Packing:: Int:: IO ()
bwppad

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.

boxPackEndDefaults

Like boxPackEnd but uses the default parameters PackRepel and 0 for padding.

boxPackEndDefaults:: b:: w:: IO ()
bw

boxPackStart

Insert a widget at the beginning of the box container.

boxPackStart:: b:: w:: Packing:: Int:: IO ()
bwppad

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.

boxPackStartDefaults

Like boxPackStart but uses the default parameters PackRepel and 0 for padding.

boxPackStartDefaults:: b:: w:: IO ()
bw

boxQueryChildPacking

Query the packing parameter of a child.

boxQueryChildPacking:: b:: w:: IO (Packing,Int,PackType)
bw

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).

boxReorderChild

Move child to a new position (counted from 0) in the box.

boxReorderChild:: b:: w:: Int:: IO ()
bwposition

boxSetChildPacking

Set the packing parameter of a child.

boxSetChildPacking:: b:: w:: Packing:: Int:: PackType:: IO ()
bwpackpadpt

boxSetHomogeneous

Set if all children should be spread homogeneous withing the box.

boxSetHomogeneous:: b:: Bool:: IO ()
bhomo

boxSetSpacing

Set the standard spacing between two children.

boxSetSpacing:: b:: Int:: IO ()
bspacing

This space is in addition to the padding parameter that is given for each child.