Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class ToGtkCallback gtkCallback purity where
- toGtkCallback :: EventHandler gtkCallback widget purity event -> widget -> (event -> IO ()) -> gtkCallback
Documentation
class ToGtkCallback gtkCallback purity where Source #
Internal class for converting EventHandler
s to gi-gtk callbacks.
toGtkCallback :: EventHandler gtkCallback widget purity event -> widget -> (event -> IO ()) -> gtkCallback Source #
Converts an EventHandler
, i.e. the internal encoding of a pure or an impure
callback, back to a GTK+ callback. Impure callbacks will also receive a
widget
as the last argument.