summaryrefslogtreecommitdiff
path: root/fltk-menu_items.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-07-19 22:40:37 +1000
committerJed Barber <jjbarber@y7mail.com>2016-07-19 22:40:37 +1000
commitab25b51036a810c326b51a230700971c0f431f74 (patch)
tree15022810b1045502d66b1aaebe7911b4968a907a /fltk-menu_items.ads
parent6aa9475d598065081866913bb86a049a6d2d0c1a (diff)
Starting to sketch the outline of menu widgets and callbacks
Diffstat (limited to 'fltk-menu_items.ads')
-rw-r--r--fltk-menu_items.ads35
1 files changed, 35 insertions, 0 deletions
diff --git a/fltk-menu_items.ads b/fltk-menu_items.ads
new file mode 100644
index 0000000..51554b0
--- /dev/null
+++ b/fltk-menu_items.ads
@@ -0,0 +1,35 @@
+
+
+with FLTK.Callbacks;
+
+
+package FLTK.Menu_Items is
+
+
+ type Menu_Item is new Wrapper with private;
+
+
+ type Shortcut_Key is Integer;
+ type Menu_Flag is Integer;
+
+
+ function Create
+ (Text : in String;
+ Shortcut : in Shortcut_Key;
+ Action : in FLTK.Callbacks.Callback;
+ Flags : in Menu_Flag)
+ return Menu_Item;
+
+
+private
+
+
+ type Menu_Item is new Wrapper with null record;
+
+
+ overriding procedure Finalize
+ (This : in out Menu_Item);
+
+
+end FLTK.Menu_Items;
+