Name

Container —

This abstract widget implements the basis for turning serveral widgets into one compound widget.

Synopsis

type
        Callback
type
        ContainerForeachCB
containerAdd:: (ContainerClass c, WidgetClass w) => c -> w -> IO ()

containerChildCompositeName <no type information>

containerFocus <no type information>

containerForeach:: ContainerClass c => c -> ContainerForeachCB -> IO ()
containerRemove:: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
containerResizeChildren:: ContainerClass c => c -> IO ()
containerSetBorderWidth:: ContainerClass c => c -> Int -> IO ()
containerSetFocusChild:: (ContainerClass c, WidgetClass w) => c -> w -> IO ()
containerSetFocusHAdjustment:: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
containerSetFocusVAdjustment:: (ContainerClass c, AdjustmentClass a) => c -> a -> IO ()
onAdd:: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onCheckResize:: ContainerClass con => con -> (IO ()) -> IO (ConnectId con)
onFocus:: ContainerClass con => con -> (DirectionType -> IO DirectionType) -> IO (ConnectId con)
onRemove:: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)
onSetFocusChild:: ContainerClass con => con -> (Widget -> IO ()) -> IO (ConnectId con)

Todo

Check if the following functions are of interest to the user: containerSetReallocateRedraws, containerQueueResize, conatinerClearResizeWidgets

Datatypes

type Callback

CallbackFunPtr (((Ptr (Widget)) -> ((Ptr ()) -> (IO ()))))

type ContainerForeachCB

ContainerForeachCBWidget -> IO ()

Methods

containerAdd

Add a widget to the container.

containerAdd:: c:: w:: IO ()
conwidget

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.

no type info on symbol containerChildCompositeName
no type info on symbol containerFocus

containerForeach

Do something for each widget in the container.

containerForeach:: c:: ContainerForeachCB:: IO ()
confun

containerRemove

Removes a present widget from the container.

containerRemove:: c:: w:: IO ()
conwidget

containerResizeChildren

Make the container resize its children.

containerResizeChildren:: c:: IO ()
con

containerSetBorderWidth

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

containerSetBorderWidth:: c:: Int:: IO ()
conwidth

containerSetFocusChild

Give the focus to a specific child of the container.

containerSetFocusChild:: c:: w:: IO ()
conwidget

containerSetFocusHAdjustment

Install an adjustment widget that is queried when focus is changed.

containerSetFocusHAdjustment:: c:: a:: IO ()
conadj

containerSetFocusVAdjustment

Install an adjustment widget that is queried when focus is changed.

containerSetFocusVAdjustment:: c:: a:: IO ()
conadj

Signals

onAdd

This signal is called each time a new widget is added to this container.

onAdd:: con:: (Widget -> IO ()):: IO (ConnectId con)

onCheckResize

This signal is called when the widget is resized.

onCheckResize:: con:: (IO ()):: IO (ConnectId con)

onFocus

This signal is called if the container receives the input focus.

onFocus:: con:: (DirectionType -> IO DirectionType):: IO (ConnectId con)

onRemove

This signal is called for each widget that is removed from the container.

onRemove:: con:: (Widget -> IO ()):: IO (ConnectId con)

onSetFocusChild

This signal is called if a child in the container receives the input focus.

onSetFocusChild:: con:: (Widget -> IO ()):: IO (ConnectId con)