General —
type
DestroyNotify |
type
Function |
type
HandlerId |
priorityHigh:: Int |
eventsPending:: IO Int |
getDefaultLanguage <no type information> |
grabAdd:: WidgetClass wd => wd -> IO () |
grabGetCurrent:: IO (Maybe Widget) |
grabRemove:: WidgetClass w => w -> IO () |
idleAdd:: IO Bool -> Int -> IO HandlerId |
idleRemove:: HandlerId -> IO () |
initGUI:: IO [String] |
mainGUI:: IO () |
mainIteration:: IO Bool |
mainIterationDo:: Bool -> IO Bool |
mainLevel:: IO Int |
mainQuit:: IO () |
timeoutAdd:: IO Bool -> Int -> IO HandlerId |
timeoutRemove:: HandlerId -> IO () |
Add a callback that is called whenever the system is idle.
| idleAdd | :: IO Bool | :: Int | :: IO HandlerId |
| fun | pri |
A priority can be specified via an integer. This should usually be priorityDefault.
If the function returns False it will be removed.
Initialize the GUI binding.
| initGUI |
This function initialized the GUI toolkit and parses all Gtk specific arguments. The remaining arguments are returned. If the initialization of the toolkit fails for whatever reason, an exception is thrown.
Throws: ErrorCall "Cannot initialize GUI."
Process an event, block if necessary.
| mainIteration |
Returns True if the loopQuit was called while processing the event.
Process a single event.
| mainIterationDo | :: Bool | :: IO Bool |
| blocking |
Called with True, this function behaves as loopIteration in that it waits until an event is available for processing. The function will return immediately, if passed False.
Returns True if the loopQuit was called while processing the event.
Inquire the main loop level.
| mainLevel |
Callbacks that take more time to process can call loopIteration to keep the GUI responsive. Each time the main loop is restarted this way, the main loop counter is increased. This function returns this counter.
Register a function that is to be called after interval ms have been elapsed.
| timeoutAdd | :: IO Bool | :: Int | :: IO HandlerId |
| fun | msec |
If the function returns False it will be removed.
Remove a previously added timeout handler by its TimeoutId.
| timeoutRemove | :: HandlerId | :: IO () |