summaryrefslogtreecommitdiff
path: root/fltk.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-07-18 15:58:30 +1000
committerJed Barber <jjbarber@y7mail.com>2016-07-18 15:58:30 +1000
commit6aa9475d598065081866913bb86a049a6d2d0c1a (patch)
treefd2074432185ed1d9f9dd8b3e9ae8e2344cbe7c5 /fltk.ads
parentf419b275ee91792e08f211a588d891c4aa6bedac (diff)
Decided on widget init problem, started on rudimentary editor appearance
Diffstat (limited to 'fltk.ads')
-rw-r--r--fltk.ads11
1 files changed, 10 insertions, 1 deletions
diff --git a/fltk.ads b/fltk.ads
index c1844a6..fab93e0 100644
--- a/fltk.ads
+++ b/fltk.ads
@@ -20,10 +20,19 @@ package FLTK is
private
+ function Has_Valid_Ptr
+ (This : in Wrapper)
+ return Boolean;
+
+
type Wrapper is abstract new Ada.Finalization.Limited_Controlled with
record
Void_Ptr : System.Address;
- end record;
+ end record
+ with Type_Invariant => Has_Valid_Ptr (Wrapper);
+
+ -- unsure if the above invariant is doing what I'm after
+ -- oh well, something to work on
overriding procedure Initialize