From ad98343da1467653dacc811a9e52b7da2282c200 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 19 Oct 2019 19:57:53 +0200 Subject: Initial commit --- src/Gtk/Signal.dcl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Gtk/Signal.dcl (limited to 'src/Gtk/Signal.dcl') diff --git a/src/Gtk/Signal.dcl b/src/Gtk/Signal.dcl new file mode 100644 index 0000000..10e6ef7 --- /dev/null +++ b/src/Gtk/Signal.dcl @@ -0,0 +1,14 @@ +definition module Gtk.Signal + +from Gtk.State import :: State, :: StateT, :: Identity, :: GtkState +from Gtk.Widgets import class gtkWidget + +:: GSignalHandlerFunction :== State GtkState () + +:: GSignalHandler + = DestroyHandler !GSignalHandlerFunction + +:: GSignalHandlerInternal + = GSHI_Void !GSignalHandlerFunction + +installSignalHandler :: !w !GSignalHandler -> State GtkState () | gtkWidget w -- cgit v1.2.3