summaryrefslogtreecommitdiff
path: root/src/Gtk/Widgets.dcl
diff options
context:
space:
mode:
authorCamil Staps2019-10-21 08:58:32 +0200
committerCamil Staps2019-10-21 08:58:32 +0200
commit08a45b115058577b0f370dabb797fe5fcdf4617a (patch)
tree466b00e928c047aa5fe8771ff7d9d356c7eccd79 /src/Gtk/Widgets.dcl
parentAdd CSS support (diff)
Add fromPtr function; rename ptr to toPtr (to be able to implement "extra" widgets in external modules)
Diffstat (limited to 'src/Gtk/Widgets.dcl')
-rw-r--r--src/Gtk/Widgets.dcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Gtk/Widgets.dcl b/src/Gtk/Widgets.dcl
index d7df700..def39c9 100644
--- a/src/Gtk/Widgets.dcl
+++ b/src/Gtk/Widgets.dcl
@@ -10,7 +10,10 @@ from Gtk.Types import :: GtkCSSClass, :: GtkDirection, :: GtkExpand,
:: GtkLabel, :: GtkMargins, :: GtkOrientation, :: GtkPanedHandleWidth,
:: GtkResize, :: GtkShrink, :: GtkStylePriority
-class ptr a :: !a -> Pointer
+class ptr a
+where
+ toPtr :: !a -> Pointer
+ fromPtr :: !Pointer -> a
:: GtkWidget