Safe Haskell | None |
---|
Gtk instantiation of interface between application and GUI.
- module Graphics.UI.Gtk.WtkGtkBp
- data State a = St {}
- data WidgetsCollection
- initState :: Notebook -> String -> a -> (Int -> IORef (State a) -> IO (VBox, [WidgetsCollection])) -> (String -> Int -> a -> a) -> Bool -> IO (IORef (State a))
- logSt :: Bool -> String -> IO ()
- newTable :: BoxClass self => String -> self -> Int -> Int -> IO Table
- newOutputPage :: String -> VBox -> IORef (State a) -> IO ()
- newOutputText :: String -> String -> IORef (State a) -> IO ()
- showSelection :: TableClass self => InputField -> Int -> Int -> Int -> self -> IORef (State a) -> IO ComboBox
- showEntry :: TableClass self => InputField -> Int -> Int -> Int -> self -> IORef (State a) -> IO Entry
- showButton :: (TableClass self, ButtonClass b) => InputField -> Int -> Int -> Int -> self -> IORef (State a1) -> b -> (IORef (State a1) -> IO a) -> IO b
- showCheckBox :: TableClass self => InputField -> Int -> Int -> Int -> self -> IORef (State a) -> IO CheckButton
- reShowPage :: Int -> IORef (State a) -> IO Bool
Documentation
module Graphics.UI.Gtk.WtkGtkBp
The State. It contains all details that have to passed around to manage properly Gtk UI and of course users state.
St | |
|
data WidgetsCollection Source
Serialization of inputable widgets for focus purposes. To be used in the function showing input page for producing proper output.
:: Notebook | Gtk's 'Notebook |
-> String | Notebook's title |
-> a | Initialized user's state |
-> (Int -> IORef (State a) -> IO (VBox, [WidgetsCollection])) | Input page creation |
-> (String -> Int -> a -> a) | User state change |
-> Bool | Debug on/off |
-> IO (IORef (State a)) |
State initializaion
newTable :: BoxClass self => String -> self -> Int -> Int -> IO TableSource
Packs a new table into a new frame, the frame into given box and returns table. Gets label for the frame, box and size of the new table.
Renders text output page on the notebook with closing button on the tab.
Renders text output page on the notebook with closing button on the tab.
:: TableClass self | |
=> InputField |
|
-> Int | left coordinate |
-> Int | up coordinate |
-> Int | id of active widget |
-> self | table to attach |
-> IORef (State a) | user state |
-> IO ComboBox |
Shows combo box and sets its attributes according to input. Attaches new selection list to the given table.
:: TableClass self | |
=> InputField | Data and attributes |
-> Int | Left coordinate |
-> Int | Top coordinate |
-> Int | Id of active widget |
-> self | Table to attach to |
-> IORef (State a) | The state |
-> IO Entry |
Entry field is rendered and attached to the given table.
:: (TableClass self, ButtonClass b) | |
=> InputField | Attributes |
-> Int | Left coordinate |
-> Int | Top coordinate |
-> Int | Id of active widget |
-> self | Table to attach to |
-> IORef (State a1) | The state |
-> b | Button to attach |
-> (IORef (State a1) -> IO a) | Action attached to the button |
-> IO b |
Attaches given buttun to the given table with action and attributes.
:: TableClass self | |
=> InputField |
|
-> Int | Left coordinate |
-> Int | top coordinate |
-> Int | id of active widget |
-> self | table to attach to |
-> IORef (State a) | The state |
-> IO CheckButton |
Renders and attaches new check button to the given table.