Gtk2HsContentsIndex
Graphics.UI.Gtk.Layout.Table
Description
The table widget is a container in which widgets can be aligned in cells.
Synopsis
data Table
class ContainerClass o => TableClass o
castToTable :: GObjectClass obj => obj -> Table
tableNew :: Int -> Int -> Bool -> IO Table
tableResize :: TableClass tb => tb -> Int -> Int -> IO ()
data AttachOptions
= Expand
| Shrink
| Fill
tableAttach :: (TableClass tb, WidgetClass w) => tb -> w -> Int -> Int -> Int -> Int -> [AttachOptions] -> [AttachOptions] -> Int -> Int -> IO ()
tableAttachDefaults :: (TableClass tb, WidgetClass w) => tb -> w -> Int -> Int -> Int -> Int -> IO ()
tableSetRowSpacing :: TableClass tb => tb -> Int -> Int -> IO ()
tableGetRowSpacing :: TableClass tb => tb -> Int -> IO Int
tableSetColSpacing :: TableClass tb => tb -> Int -> Int -> IO ()
tableGetColSpacing :: TableClass tb => tb -> Int -> IO Int
tableSetRowSpacings :: TableClass tb => tb -> Int -> IO ()
tableGetDefaultRowSpacing :: TableClass tb => tb -> IO Int
tableSetColSpacings :: TableClass tb => tb -> Int -> IO ()
tableGetDefaultColSpacing :: TableClass tb => tb -> IO Int
tableSetHomogeneous :: TableClass tb => tb -> Bool -> IO ()
tableGetHomogeneous :: TableClass tb => tb -> IO Bool
Documentation
data Table
Instances
TableClass Table
ContainerClass Table
WidgetClass Table
ObjectClass Table
GObjectClass Table
class ContainerClass o => TableClass o
Instances
TableClass Table
castToTable :: GObjectClass obj => obj -> Table
tableNew :: Int -> Int -> Bool -> IO Table
Create a new table with the specified dimensions. Set homogeneous to True if all cells should be of the same size.
tableResize :: TableClass tb => tb -> Int -> Int -> IO ()
Change the dimensions of an already existing table.
data AttachOptions
Child widget attach options for table containers
Constructors
Expand
Shrink
Fill
Instances
Enum AttachOptions
Flags AttachOptions
Bounded AttachOptions
tableAttach :: (TableClass tb, WidgetClass w) => tb -> w -> Int -> Int -> Int -> Int -> [AttachOptions] -> [AttachOptions] -> Int -> Int -> IO ()
Put a new widget in the table container. The widget should span the cells (leftAttach,topAttach) to (rightAttach,bottomAttach). Further formatting options have to be specified.
tableAttachDefaults :: (TableClass tb, WidgetClass w) => tb -> w -> Int -> Int -> Int -> Int -> IO ()
Put a new widget in the table container. As opposed to tableAttach this function assumes default values for the packing options.
tableSetRowSpacing
:: TableClass tb
=> tb
-> IntRow number, indexed from 0
-> IntSpacing size in pixels
-> IO ()
Set the amount of space (in pixels) between the specified row and its neighbours.
tableGetRowSpacing :: TableClass tb => tb -> Int -> IO Int
Get the amount of space (in pixels) between the specified row and the next row.
tableSetColSpacing :: TableClass tb => tb -> Int -> Int -> IO ()
Set the amount of space (in pixels) between the specified column and its neighbours.
tableGetColSpacing :: TableClass tb => tb -> Int -> IO Int
Get the amount of space (in pixels) between the specified column and the next column.
tableSetRowSpacings :: TableClass tb => tb -> Int -> IO ()
Set the amount of space between any two rows.
tableGetDefaultRowSpacing :: TableClass tb => tb -> IO Int
Gets the default row spacing for the table. This is the spacing that will be used for newly added rows.
tableSetColSpacings :: TableClass tb => tb -> Int -> IO ()
Set the amount of space between any two columns.
tableGetDefaultColSpacing :: TableClass tb => tb -> IO Int
Gets the default column spacing for the table. This is the spacing that will be used for newly added columns.
tableSetHomogeneous :: TableClass tb => tb -> Bool -> IO ()
Make all cells the same size.
tableGetHomogeneous :: TableClass tb => tb -> IO Bool
Returns whether the table cells are all constrained to the same width and height.
Produced by Haddock version 0.6