summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-menus-menu_bars.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-18 00:43:55 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-18 00:43:55 +1300
commitf27eb859eff94ec9c13239daee15f60ffecde089 (patch)
tree68912acc3a7e9fa85ef447f69a3e3bbb8e27cf04 /src/fltk-widgets-menus-menu_bars.adb
parent157f44ff7034212a29696c5bb2b87e4f6f20d625 (diff)
Added Fl_Sys_Menu_Bar
Diffstat (limited to 'src/fltk-widgets-menus-menu_bars.adb')
-rw-r--r--src/fltk-widgets-menus-menu_bars.adb22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/fltk-widgets-menus-menu_bars.adb b/src/fltk-widgets-menus-menu_bars.adb
index d3f1295..f1dba40 100644
--- a/src/fltk-widgets-menus-menu_bars.adb
+++ b/src/fltk-widgets-menus-menu_bars.adb
@@ -47,6 +47,22 @@ package body FLTK.Widgets.Menus.Menu_Bars is
+ function fl_menu_get_item
+ (M : in Storage.Integer_Address;
+ I : in Interfaces.C.int)
+ return Storage.Integer_Address;
+ pragma Import (C, fl_menu_get_item, "fl_menu_get_item");
+ pragma Inline (fl_menu_get_item);
+
+ function fl_menu_value
+ (M : in Storage.Integer_Address)
+ return Interfaces.C.int;
+ pragma Import (C, fl_menu_value, "fl_menu_value");
+ pragma Inline (fl_menu_value);
+
+
+
+
-------------------
-- Destructors --
-------------------
@@ -87,8 +103,10 @@ package body FLTK.Widgets.Menus.Menu_Bars is
procedure Initialize
(This : in out Menu_Bar) is
begin
- This.Draw_Ptr := fl_menu_bar_draw'Address;
- This.Handle_Ptr := fl_menu_bar_handle'Address;
+ This.Draw_Ptr := fl_menu_bar_draw'Address;
+ This.Handle_Ptr := fl_menu_bar_handle'Address;
+ This.Get_Item_Ptr := fl_menu_get_item'Address;
+ This.Value_Ptr := fl_menu_value'Address;
end Initialize;