gi-gtk-declarative-0.3.0: Declarative GTK+ programming in Haskell

Safe HaskellSafe
LanguageHaskell2010

GI.Gtk.Declarative.Attributes.Internal.Conversions

Synopsis

Documentation

class ToGtkCallback gtkCallback purity where Source #

Internal class for converting EventHandlers to gi-gtk callbacks.

Minimal complete definition

toGtkCallback

Methods

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.

Instances
ToGtkCallback (IO Bool) Pure Source # 
Instance details

Defined in GI.Gtk.Declarative.Attributes.Internal.Conversions

Methods

toGtkCallback :: EventHandler (IO Bool) widget Pure event -> widget -> (event -> IO ()) -> IO Bool Source #

ToGtkCallback (IO Bool) Impure Source # 
Instance details

Defined in GI.Gtk.Declarative.Attributes.Internal.Conversions

Methods

toGtkCallback :: EventHandler (IO Bool) widget Impure event -> widget -> (event -> IO ()) -> IO Bool Source #

ToGtkCallback (IO ()) Pure Source # 
Instance details

Defined in GI.Gtk.Declarative.Attributes.Internal.Conversions

Methods

toGtkCallback :: EventHandler (IO ()) widget Pure event -> widget -> (event -> IO ()) -> IO () Source #

ToGtkCallback (IO ()) Impure Source # 
Instance details

Defined in GI.Gtk.Declarative.Attributes.Internal.Conversions

Methods

toGtkCallback :: EventHandler (IO ()) widget Impure event -> widget -> (event -> IO ()) -> IO () Source #

ToGtkCallback y purity => ToGtkCallback (x -> y) purity Source # 
Instance details

Defined in GI.Gtk.Declarative.Attributes.Internal.Conversions

Methods

toGtkCallback :: EventHandler (x -> y) widget purity event -> widget -> (event -> IO ()) -> x -> y Source #