Safe Haskell | None |
---|
Graphics.UI.Gtk.WtkGtkBp
Description
Gtk boilerplating useful for certain solutions.
- hlineToTable :: TableClass t => Int -> Int -> t -> IO ()
- textToTableCellL :: TableClass t => String -> Int -> Int -> t -> IO Label
- textToTableLineL :: TableClass t => String -> Int -> Int -> Int -> t -> IO Label
- textToTableCellR :: TableClass t => String -> Int -> Int -> t -> IO Label
- textToTableLineR :: TableClass t => String -> Int -> Int -> Int -> t -> IO Label
- labelToTable :: (MiscClass child, TableClass self) => child -> Float -> Int -> Int -> Int -> self -> IO ()
- type CellInfo t = (String -> Int -> Int -> t -> IO Label, String)
- lineToTable :: TableClass t => t -> Int -> Int -> (Bool, [CellInfo t], [String]) -> IO Int
- cellToTable :: TableClass t => t -> Int -> Int -> (CellInfo t, String) -> IO Int
- cellToTableV :: TableClass t => t -> Int -> Int -> (CellInfo t, String) -> IO Int
- markUpEnd :: [Char] -> [Char]
- comboBoxWithText :: [String] -> IO ComboBox
- comboBoxToTable :: Int -> Int -> [String] -> Table -> IO ComboBox
- buttonToTable :: (ButtonClass child, TableClass self) => Int -> Int -> child -> IO () -> self -> IO ()
- myNewTable :: BoxClass self => String -> self -> Int -> Int -> IO Table
- errMsgToTable :: TableClass t => InputField -> Int -> Int -> t -> IO ()
Documentation
hlineToTable :: TableClass t => Int -> Int -> t -> IO ()Source
Attaches horizontal rule into table from (0,up) to (right,up+1).
textToTableCellL :: TableClass t => String -> Int -> Int -> t -> IO LabelSource
Attaches markup text into cell (left,up)(left+1,up+1) of given table. Text is left adejusted.
textToTableLineL :: TableClass t => String -> Int -> Int -> Int -> t -> IO LabelSource
Attaches markup text into cells (left,up)(right,up+1) of given table. Text is left adejusted.
textToTableCellR :: TableClass t => String -> Int -> Int -> t -> IO LabelSource
Attaches markup text into cell (left,up)(left+1,up+1) of given table. Text is right adejusted.
textToTableLineR :: TableClass t => String -> Int -> Int -> Int -> t -> IO LabelSource
Attaches markup text into cells (left,up)(right,up+1) of given table. Text is right adejusted.
labelToTable :: (MiscClass child, TableClass self) => child -> Float -> Int -> Int -> Int -> self -> IO ()Source
type CellInfo t = (String -> Int -> Int -> t -> IO Label, String)Source
Steering information for text formating while attaching to table's cell.
Arguments
:: TableClass t | |
=> t | Given table |
-> Int | Horizontal begining cell |
-> Int | Vertical cell |
-> (Bool, [CellInfo t], [String]) | |
-> IO Int | Returns number of next line to attach. |
Attaches list of Strings into given table so that each string is in separate cosecutive
cell of given line of table. Each cell can be attached in own way according to CellInfo
.
Arguments
:: TableClass t | |
=> t | Given table |
-> Int | Vertical cell |
-> Int | Horizontal begining cell |
-> (CellInfo t, String) | Text to attach |
-> IO Int |
Attaches given text to give table at given position in given way.
cellToTableV :: TableClass t => t -> Int -> Int -> (CellInfo t, String) -> IO IntSource
Like cellToTable
just tailored for usage in vertical collections.
comboBoxWithText :: [String] -> IO ComboBoxSource
Creates new combo box with list of texts.
comboBoxToTable :: Int -> Int -> [String] -> Table -> IO ComboBoxSource
Creates a text combo box and puts it into given table at given position. Combo box contains lines given as input.
buttonToTable :: (ButtonClass child, TableClass self) => Int -> Int -> child -> IO () -> self -> IO ()Source
Attaches given button into given table at given position. Button is linked with given action.
myNewTable :: BoxClass self => String -> self -> Int -> Int -> IO TableSource
Creates a new table, packs it into a new frame, the frame into given box and returns table. Gets label for the frame, box and size of the new table.
errMsgToTable :: TableClass t => InputField -> Int -> Int -> t -> IO ()Source
Attacges error message to the table. errShow att left up t | isError att = textToTableCellL txt left up t