diff options
author | Camil Staps | 2019-10-19 19:57:53 +0200 |
---|---|---|
committer | Camil Staps | 2019-10-20 09:11:19 +0200 |
commit | ad98343da1467653dacc811a9e52b7da2282c200 (patch) | |
tree | 159ee3beadf5ddb022d1640ba441aebee7f39a54 /src/Gtk/Signal.dcl |
Initial commit
Diffstat (limited to 'src/Gtk/Signal.dcl')
-rw-r--r-- | src/Gtk/Signal.dcl | 14 |
1 files changed, 14 insertions, 0 deletions
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 |