diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-07-19 22:40:37 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-07-19 22:40:37 +1000 |
commit | ab25b51036a810c326b51a230700971c0f431f74 (patch) | |
tree | 15022810b1045502d66b1aaebe7911b4968a907a /fltk-widgets-menus.ads | |
parent | 6aa9475d598065081866913bb86a049a6d2d0c1a (diff) |
Starting to sketch the outline of menu widgets and callbacks
Diffstat (limited to 'fltk-widgets-menus.ads')
-rw-r--r-- | fltk-widgets-menus.ads | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/fltk-widgets-menus.ads b/fltk-widgets-menus.ads new file mode 100644 index 0000000..7a08de4 --- /dev/null +++ b/fltk-widgets-menus.ads @@ -0,0 +1,38 @@ + + +private with Ada.Containers.Vectors; +private with FLTK.Menu_Items; + + +package FLTK.Widgets.Menus is + + + type Menu is abstract new Widget with private; + type Index is new Positive; + + + function Create + (X, Y, W, H : in Integer; + Text : in String) + return Menu is abstract; + + +private + + + type Menu_Item_Access is access all FLTK.Menu_Items.Menu_Item; + package Menu_Vectors is new Ada.Containers.Vectors (Index, Menu_Item_Access); + + + type Menu is abstract new Widget with + record + Menu_Item_List : Menu_Vectors.Vector; + end record; + + + overriding procedure Initialize + (This : in out Menu); + + +end FLTK.Widgets.Menus; + |