gtk2hsContentsIndex
Container
Description
This abstract widget implements the basis for turning serveral widgets into one compound widget.
Synopsis
containerAdd :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
containerRemove :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
containerForeach :: ContainerClass c => c -> ContainerForeachCB -> IO ()
containerGetChildren :: ContainerClass c => c -> IO [Widget]
data DirectionType
= DirTabForward
| DirTabBackward
| DirUp
| DirDown
| DirLeft
| DirRight
containerSetFocusChild :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
containerSetFocusChain :: ContainerClass c => c -> [Widget] -> IO ()
containerGetFocusChain :: ContainerClass c => c -> IO (Maybe [Widget])
containerUnsetFocusChain :: ContainerClass c => c -> IO ()
containerSetFocusVAdjustment :: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
containerGetFocusVAdjustment :: ContainerClass c => c -> IO (Maybe Adjustment)
containerSetFocusHAdjustment :: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
containerGetFocusHAdjustment :: ContainerClass c => c -> IO (Maybe Adjustment)
containerResizeChildren :: ContainerClass c => c -> IO ()
containerSetBorderWidth :: ContainerClass c => c -> Int -> IO ()
containerGetBorderWidth :: ContainerClass c => c -> IO Int
containerChildSetProperty :: (ContainerClass c, WidgetClass widget) => c -> widget -> String -> GenericValue -> IO ()
containerChildGetProperty :: (ContainerClass c, WidgetClass widget) => c -> widget -> String -> IO GenericValue
onAdd :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
afterAdd :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onCheckResize :: ContainerClass con => con -> IO () -> IO (ConnectId con)
afterCheckResize :: ContainerClass con => con -> IO () -> IO (ConnectId con)
onFocus :: ContainerClass con => con -> (DirectionType -> IO DirectionType) -> IO (ConnectId con)
afterFocus :: ContainerClass con => con -> (DirectionType -> IO DirectionType) -> IO (ConnectId con)
onRemove :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
afterRemove :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onSetFocusChild :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
afterSetFocusChild :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
Documentation
containerAdd :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()

Add a widget to the container.

  • Only useful for simple containers like Window. Use boxPackStart or tableAttach in other cases. A widget may not be added to more than one container.
containerRemove :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
Removes a present widget from the container.
containerForeach :: ContainerClass c => c -> ContainerForeachCB -> IO ()
Do something for each widget in the container.
containerGetChildren :: ContainerClass c => c -> IO [Widget]
Returns the the container's children.
data DirectionType
editing direction
Constructors
DirTabForward
DirTabBackward
DirUp
DirDown
DirLeft
DirRight
Instances
Enum DirectionType
containerSetFocusChild :: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
Give the focus to a specific child of the container.
containerSetFocusChain :: ContainerClass c => c -> [Widget] -> IO ()
Sets a focus chain, overriding the one computed automatically by GTK+.
containerGetFocusChain :: ContainerClass c => c -> IO (Maybe [Widget])
Retrieves the focus chain of the container, if one has been set explicitly.
containerUnsetFocusChain :: ContainerClass c => c -> IO ()
Removes a focus chain explicitly set with containerSetFocusChain.
containerSetFocusVAdjustment :: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
Install an adjustment widget that is queried when focus is changed.
containerGetFocusVAdjustment :: ContainerClass c => c -> IO (Maybe Adjustment)
Retrieves the vertical focus adjustment for the container, or Nothing if none has been set.
containerSetFocusHAdjustment :: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
Install an adjustment widget that is queried when focus is changed.
containerGetFocusHAdjustment :: ContainerClass c => c -> IO (Maybe Adjustment)
Retrieves the horizontal focus adjustment for the container, or Nothing if none has been set.
containerResizeChildren :: ContainerClass c => c -> IO ()
Make the container resize its children.
containerSetBorderWidth :: ContainerClass c => c -> Int -> IO ()

Set the amount of empty space around the outside of the container.

The border width of a container is the amount of space to leave around the outside of the container. The border is added on all sides of the container.

containerGetBorderWidth :: ContainerClass c => c -> IO Int
Retrieves the border width of the container. See containerSetBorderWidth.
containerChildSetProperty
:: (ContainerClass c, WidgetClass widget)
=> c
-> widgetChile widget
-> StringProperty name
-> GenericValueProperty value
-> IO ()
Sets a child property for child and container.
containerChildGetProperty
:: (ContainerClass c, WidgetClass widget)
=> c
-> widgetChild widget
-> StringProperty name
-> IO GenericValue
Gets the value of a child property for the given child and container.
onAdd :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
This signal is called each time a new widget is added to this container.
afterAdd :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onCheckResize :: ContainerClass con => con -> IO () -> IO (ConnectId con)
This signal is called when the widget is resized.
afterCheckResize :: ContainerClass con => con -> IO () -> IO (ConnectId con)
onFocus :: ContainerClass con => con -> (DirectionType -> IO DirectionType) -> IO (ConnectId con)
This signal is called if the container receives the input focus.
afterFocus :: ContainerClass con => con -> (DirectionType -> IO DirectionType) -> IO (ConnectId con)
onRemove :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
This signal is called for each widget that is removed from the container.
afterRemove :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onSetFocusChild :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
This signal is called if a child in the container receives the input focus.
afterSetFocusChild :: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
Produced by Haddock version 0.6