From ab25b51036a810c326b51a230700971c0f431f74 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 19 Jul 2016 22:40:37 +1000 Subject: Starting to sketch the outline of menu widgets and callbacks --- fltk-menu_items.ads | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fltk-menu_items.ads (limited to 'fltk-menu_items.ads') 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; + -- cgit