summaryrefslogtreecommitdiff
path: root/fltk-widget.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-05-24 02:25:30 +1000
committerJed Barber <jjbarber@y7mail.com>2016-05-24 02:25:30 +1000
commitac5c51b6ee492b504e165408b742d2505e308e94 (patch)
treef0d0dc1bcade720f368f119240a0ade500adf092 /fltk-widget.ads
It's a start
Diffstat (limited to 'fltk-widget.ads')
-rw-r--r--fltk-widget.ads53
1 files changed, 53 insertions, 0 deletions
diff --git a/fltk-widget.ads b/fltk-widget.ads
new file mode 100644
index 0000000..1e56c4f
--- /dev/null
+++ b/fltk-widget.ads
@@ -0,0 +1,53 @@
+
+
+with FLTK.Enums; use FLTK.Enums;
+private with Ada.Finalization;
+private with System;
+
+
+package FLTK.Widget is
+
+
+ type Widget_Type is abstract tagged limited private;
+
+
+ function Create
+ (X, Y, W, H : in Integer;
+ Label : in String)
+ return Widget_Type is abstract;
+
+
+ function Get_Box
+ (W : in Widget_Type'Class)
+ return Box_Kind;
+
+
+ procedure Set_Box
+ (W : in Widget_Type'Class;
+ B : in Box_Kind);
+
+
+ function Get_Label_Font
+ (W : in Widget_Type'Class)
+ return Font_Kind;
+
+
+ procedure Set_Label_Font
+ (W : in Widget_Type'Class;
+ F : in Font_Kind);
+
+
+private
+
+
+ type Widget_Type is abstract new Ada.Finalization.Limited_Controlled with
+ record
+ Void_Ptr : System.Address;
+ end record;
+
+
+ overriding procedure Initialize (This : in out Widget_Type);
+
+
+end FLTK.Widget;
+