From 63d9e14dd0cccb2191bd18ec07cfb11d06a30fcd Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 24 May 2016 02:25:30 +1000 Subject: It's a start --- src/fltk_binding/fltk-widget-group.ads | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/fltk_binding/fltk-widget-group.ads (limited to 'src/fltk_binding/fltk-widget-group.ads') diff --git a/src/fltk_binding/fltk-widget-group.ads b/src/fltk_binding/fltk-widget-group.ads new file mode 100644 index 0000000..689d798 --- /dev/null +++ b/src/fltk_binding/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; + -- cgit