diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-04-27 10:40:48 +1000 |
commit | 0d842f0423ba0754fb3675c7468397a8da5f6e1b (patch) | |
tree | d5da172bc7af2f7f48a3415eceac67ed67542787 /src/fltk-widgets-groups.ads | |
parent | 5d88963cd203f30b79433e34e5c89bfcf8abfe60 (diff) |
Organising source
Diffstat (limited to 'src/fltk-widgets-groups.ads')
-rw-r--r-- | src/fltk-widgets-groups.ads | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/fltk-widgets-groups.ads b/src/fltk-widgets-groups.ads new file mode 100644 index 0000000..57faf87 --- /dev/null +++ b/src/fltk-widgets-groups.ads @@ -0,0 +1,82 @@ + + +private with System; + + +package FLTK.Widgets.Groups is + + + type Group is new Widget with private; + type Index is new Positive; + + + function Create + (X, Y, W, H : in Integer; + Text : in String) + return Group; + + + procedure Add + (This : in out Group; + Item : in out Widget'Class); + + + function Child + (This : in Group; + Place : in Index) + return access Widget'Class; + + + function Number_Of_Children + (This : in Group) + return Natural; + + + procedure Clear + (This : in out Group); + + + function Find + (This : in Group; + Item : in out Widget'Class) + return Index; + + + procedure Insert + (This : in out Group; + Item : in out Widget'Class; + Place : in Index); + + + procedure Remove + (This : in out Group; + Item : in out Widget'Class); + + + procedure Remove + (This : in out Group; + Place : in Index); + + + procedure Set_Resizable + (This : in out Group; + Item : in Widget'Class); + + +private + + + type Group is new Widget with null record; + + + overriding procedure Finalize + (This : in out Group); + + + procedure fl_group_end + (G : in System.Address); + pragma Import (C, fl_group_end, "fl_group_end"); + + +end FLTK.Widgets.Groups; + |