Container —
This abstract widget implements the basis for turning serveral widgets into one compound widget.
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) |
Check if the following functions are of interest to the user: containerSetReallocateRedraws, containerQueueResize, conatinerClearResizeWidgets
Add a widget to the container.
| containerAdd | :: c | :: w | :: IO () |
| con | widget |
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.
Do something for each widget in the container.
| containerForeach | :: c | :: ContainerForeachCB | :: IO () |
| con | fun |
Make the container resize its children.
| containerResizeChildren | :: c | :: IO () |
| con |
Set the amount of empty space around the outside of the container.
| containerSetBorderWidth | :: c | :: Int | :: IO () |
| con | width |
Give the focus to a specific child of the container.
| containerSetFocusChild | :: c | :: w | :: IO () |
| con | widget |
This signal is called each time a new widget is added to this container.
| onAdd | :: con | :: (Widget -> IO ()) | :: IO (ConnectId con) |
This signal is called when the widget is resized.
| onCheckResize | :: con | :: (IO ()) | :: IO (ConnectId con) |
This signal is called if the container receives the input focus.
| onFocus | :: con | :: (DirectionType -> IO DirectionType) | :: IO (ConnectId con) |