summaryrefslogtreecommitdiff
path: root/fltk-widget-group.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-group.ads
It's a start
Diffstat (limited to 'fltk-widget-group.ads')
-rw-r--r--fltk-widget-group.ads57
1 files changed, 57 insertions, 0 deletions
diff --git a/fltk-widget-group.ads b/fltk-widget-group.ads
new file mode 100644
index 0000000..689d798
--- /dev/null
+++ b/fltk-widget-group.ads
@@ -0,0 +1,57 @@
+
+
+package FLTK.Widget.Group is
+
+
+ type Group_Type is new Widget_Type with private;
+ type Index is new Integer;
+
+
+ function Create
+ (X, Y, W, H : Integer;
+ Label : String)
+ return Group_Type;
+
+
+ procedure Add
+ (This : Group_Type;
+ Item : Widget_Type'Class);
+
+
+ procedure Clear
+ (This : Group_Type);
+
+
+ function Find
+ (This : Group_Type;
+ Item : Widget_Type'Class)
+ return Index;
+
+
+ procedure Insert
+ (This : Group_Type;
+ Item : Widget_Type'Class;
+ Place : Index);
+
+
+ procedure Remove
+ (This : Group_Type;
+ Item : Widget_Type'Class);
+
+
+ procedure Remove
+ (This : Group_Type;
+ Place : Index);
+
+
+private
+
+
+ type Group_Type is new Widget_Type with null record;
+
+
+ overriding procedure Finalize (This : in out Group_Type);
+
+
+end FLTK.Widget.Group;
+