summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-menus.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-menus.adb')
-rw-r--r--body/fltk-widgets-menus.adb40
1 files changed, 40 insertions, 0 deletions
diff --git a/body/fltk-widgets-menus.adb b/body/fltk-widgets-menus.adb
index 034cd4c..3344efd 100644
--- a/body/fltk-widgets-menus.adb
+++ b/body/fltk-widgets-menus.adb
@@ -32,6 +32,8 @@ package body FLTK.Widgets.Menus is
-- Functions From C --
------------------------
+ -- Allocation --
+
function null_fl_menu_item
return Storage.Integer_Address;
pragma Import (C, null_fl_menu_item, "null_fl_menu_item");
@@ -57,6 +59,8 @@ package body FLTK.Widgets.Menus is
+ -- Menu Items --
+
function fl_menu_add
(M : in Storage.Integer_Address;
T : in Interfaces.C.char_array)
@@ -135,6 +139,8 @@ package body FLTK.Widgets.Menus is
+ -- Item Query --
+
function fl_menu_get_item
(M : in Storage.Integer_Address;
I : in Interfaces.C.int)
@@ -179,6 +185,8 @@ package body FLTK.Widgets.Menus is
+ -- Selection --
+
function fl_menu_text
(M : in Storage.Integer_Address)
return Interfaces.C.Strings.chars_ptr;
@@ -207,6 +215,8 @@ package body FLTK.Widgets.Menus is
+ -- Label, Shortcut, Flags --
+
procedure fl_menu_setonly
(M, I : in Storage.Integer_Address);
pragma Import (C, fl_menu_setonly, "fl_menu_setonly");
@@ -250,6 +260,8 @@ package body FLTK.Widgets.Menus is
+ -- Text Settings --
+
function fl_menu_get_textcolor
(M : in Storage.Integer_Address)
return Interfaces.C.unsigned;
@@ -289,6 +301,8 @@ package body FLTK.Widgets.Menus is
+ -- Miscellaneous --
+
function fl_menu_get_down_box
(M : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -317,6 +331,8 @@ package body FLTK.Widgets.Menus is
+ -- Menu Item Methods --
+
function fl_menu_popup
(M : in Storage.Integer_Address;
X, Y : in Interfaces.C.int;
@@ -356,6 +372,8 @@ package body FLTK.Widgets.Menus is
+ -- Dimensions --
+
procedure fl_menu_size2
(M : in Storage.Integer_Address;
W, H : in Interfaces.C.int);
@@ -365,6 +383,8 @@ package body FLTK.Widgets.Menus is
+ -- Drawing, Events --
+
procedure fl_menu_draw_item
(M : in Storage.Integer_Address;
I : in Interfaces.C.int;
@@ -542,6 +562,8 @@ package body FLTK.Widgets.Menus is
-- API Subprograms --
-----------------------
+ -- Menu Items --
+
procedure Add
(This : in out Menu;
Text : in String)
@@ -793,6 +815,8 @@ package body FLTK.Widgets.Menus is
+ -- Item Query --
+
function Has_Item
(This : in Menu;
Place : in Index)
@@ -969,6 +993,8 @@ package body FLTK.Widgets.Menus is
+ -- Iteration --
+
function Iterate
(This : in Menu)
return Menu_Iterators.Reversible_Iterator'Class is
@@ -1021,6 +1047,8 @@ package body FLTK.Widgets.Menus is
+ -- Selection --
+
function Chosen
(This : in Menu)
return FLTK.Menu_Items.Menu_Item_Reference
@@ -1102,6 +1130,8 @@ package body FLTK.Widgets.Menus is
+ -- Label, Shortcut, Flags --
+
procedure Set_Only
(This : in out Menu;
Item : in out FLTK.Menu_Items.Menu_Item) is
@@ -1174,6 +1204,8 @@ package body FLTK.Widgets.Menus is
+ -- Text Settings --
+
function Get_Text_Color
(This : in Menu)
return Color is
@@ -1236,6 +1268,8 @@ package body FLTK.Widgets.Menus is
+ -- Miscellaneous --
+
function Get_Down_Box
(This : in Menu)
return Box_Kind
@@ -1279,6 +1313,8 @@ package body FLTK.Widgets.Menus is
+ -- Menu Item Methods --
+
function Popup
(This : in Menu;
X, Y : in Integer;
@@ -1389,6 +1425,8 @@ package body FLTK.Widgets.Menus is
+ -- Dimensions --
+
procedure Resize
(This : in out Menu;
W, H : in Integer) is
@@ -1402,6 +1440,8 @@ package body FLTK.Widgets.Menus is
+ -- Drawing --
+
procedure Draw_Item
(This : in out Menu;
Item : in Index;