Gtk2HsContentsIndex
Graphics.UI.Gtk.Abstract.Box
Description
This abstract container class is instatiated by using HBox or VBox. It supplies all methods to add and remove children.
Synopsis
data Box
class ContainerClass o => BoxClass o
castToBox :: GObjectClass obj => obj -> Box
data Packing
= PackRepel
| PackGrow
| PackNatural
boxPackStart :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO ()
boxPackEnd :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> IO ()
boxPackStartDefaults :: (BoxClass b, WidgetClass w) => b -> w -> IO ()
boxPackEndDefaults :: (BoxClass b, WidgetClass w) => b -> w -> IO ()
boxGetHomogeneous :: BoxClass b => b -> IO Bool
boxSetHomogeneous :: BoxClass b => b -> Bool -> IO ()
boxGetSpacing :: BoxClass b => b -> IO Int
boxSetSpacing :: BoxClass b => b -> Int -> IO ()
boxReorderChild :: (BoxClass b, WidgetClass w) => b -> w -> Int -> IO ()
boxQueryChildPacking :: (BoxClass b, WidgetClass w) => b -> w -> IO (Packing, Int, PackType)
boxSetChildPacking :: (BoxClass b, WidgetClass w) => b -> w -> Packing -> Int -> PackType -> IO ()
Documentation
data Box
Instances
BoxClass Box
ContainerClass Box
WidgetClass Box
ObjectClass Box
GObjectClass Box
class ContainerClass o => BoxClass o
Instances
BoxClass Box
BoxClass ButtonBox
BoxClass HButtonBox
BoxClass VButtonBox
BoxClass VBox
BoxClass ColorSelection
BoxClass FontSelection
BoxClass GammaCurve
BoxClass FileChooserWidget
BoxClass HBox
BoxClass Combo
BoxClass Statusbar
castToBox :: GObjectClass obj => obj -> Box
data Packing
Packing parameters of a widget
Constructors
PackRepel
PackGrow
PackNatural
Instances
Enum Packing
Eq Packing
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