Name

General —

Synopsis

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 ()

Todo

* quitAddDestroy, quitAdd, quitRemove, inputAdd, inputRemove

Datatypes

type DestroyNotify

DestroyNotifyFunPtr (((Ptr ()) -> (IO ())))

type Function

FunctionFunPtr (((Ptr ()) -> (IO CInt)))

Determine how bitmap operations are carried out.

type HandlerId

HandlerId(CUInt)

Functions

eventsPending

Inquire the number of events pending on the event queue

eventsPending
no type info on symbol getDefaultLanguage

grabAdd

add a grab widget

grabAdd:: wd:: IO ()

grabGetCurrent

inquire current grab widget

grabGetCurrent

grabRemove

remove a grab widget

grabRemove:: w:: IO ()

idleAdd

Add a callback that is called whenever the system is idle.

idleAdd:: IO Bool:: Int:: IO HandlerId
funpri

A priority can be specified via an integer. This should usually be priorityDefault.

If the function returns False it will be removed.

idleRemove

Remove a previously added idle handler by its TimeoutId.

idleRemove:: HandlerId:: IO ()

initGUI

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."

mainGUI

Run GTK+'s main event loop.

mainGUI

mainIteration

Process an event, block if necessary.

mainIteration

Returns True if the loopQuit was called while processing the event.

mainIterationDo

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.

mainLevel

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.

mainQuit

Exit the main event loop.

mainQuit

timeoutAdd

Register a function that is to be called after interval ms have been elapsed.

timeoutAdd:: IO Bool:: Int:: IO HandlerId
funmsec

If the function returns False it will be removed.

timeoutRemove

Remove a previously added timeout handler by its TimeoutId.

timeoutRemove:: HandlerId:: IO ()

Constants

priorityHigh

For installing idle callbacks: Priorities.

priorityHigh