diff options
author | Camil Staps | 2019-10-21 08:58:32 +0200 |
---|---|---|
committer | Camil Staps | 2019-10-21 08:58:32 +0200 |
commit | 08a45b115058577b0f370dabb797fe5fcdf4617a (patch) | |
tree | 466b00e928c047aa5fe8771ff7d9d356c7eccd79 /src/Gtk/Widgets.dcl | |
parent | Add 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.dcl | 5 |
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 |