summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-menus-choices.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-02-06 19:28:33 +1300
commit547e538476a788dfeb5974f9b8ad29441d18980b (patch)
tree00a3c7d80ee403969971bc4b814876b4399f3ada /body/fltk-widgets-menus-choices.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-widgets-menus-choices.adb')
-rw-r--r--body/fltk-widgets-menus-choices.adb22
1 files changed, 17 insertions, 5 deletions
diff --git a/body/fltk-widgets-menus-choices.adb b/body/fltk-widgets-menus-choices.adb
index e4b52ad..80168f9 100644
--- a/body/fltk-widgets-menus-choices.adb
+++ b/body/fltk-widgets-menus-choices.adb
@@ -22,6 +22,8 @@ package body FLTK.Widgets.Menus.Choices is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_choice
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -37,6 +39,8 @@ package body FLTK.Widgets.Menus.Choices is
+ -- Selection --
+
function fl_choice_value
(M : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -59,6 +63,8 @@ package body FLTK.Widgets.Menus.Choices is
+ -- Drawing, Events --
+
procedure fl_choice_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_choice_draw, "fl_choice_draw");
@@ -74,6 +80,8 @@ package body FLTK.Widgets.Menus.Choices is
+ -- Initialize --
+
function fl_menu_get_item
(M : in Storage.Integer_Address;
I : in Interfaces.C.int)
@@ -140,11 +148,11 @@ package body FLTK.Widgets.Menus.Choices is
begin
return This : Choice do
This.Void_Ptr := new_fl_choice
- (Interfaces.C.int (X),
- Interfaces.C.int (Y),
- Interfaces.C.int (W),
- Interfaces.C.int (H),
- Interfaces.C.To_C (Text));
+ (Interfaces.C.int (X),
+ Interfaces.C.int (Y),
+ Interfaces.C.int (W),
+ Interfaces.C.int (H),
+ Interfaces.C.To_C (Text));
Extra_Init (This, X, Y, W, H, Text);
end return;
end Create;
@@ -170,6 +178,8 @@ package body FLTK.Widgets.Menus.Choices is
-- API Subprograms --
-----------------------
+ -- Selection --
+
function Chosen_Index
(This : in Choice)
return Extended_Index is
@@ -218,6 +228,8 @@ package body FLTK.Widgets.Menus.Choices is
+ -- Drawing, Events --
+
procedure Draw
(This : in out Choice) is
begin