summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-buttons.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-buttons.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-widgets-buttons.adb')
-rw-r--r--body/fltk-widgets-buttons.adb28
1 files changed, 23 insertions, 5 deletions
diff --git a/body/fltk-widgets-buttons.adb b/body/fltk-widgets-buttons.adb
index 1e7ef60..d6e587e 100644
--- a/body/fltk-widgets-buttons.adb
+++ b/body/fltk-widgets-buttons.adb
@@ -17,6 +17,8 @@ package body FLTK.Widgets.Buttons is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_button
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -32,6 +34,8 @@ package body FLTK.Widgets.Buttons is
+ -- State --
+
function fl_button_get_state
(B : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -52,6 +56,8 @@ package body FLTK.Widgets.Buttons is
+ -- Settings --
+
function fl_button_get_down_box
(B : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -79,6 +85,8 @@ package body FLTK.Widgets.Buttons is
+ -- Drawing, Events --
+
procedure fl_button_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_button_draw, "fl_button_draw");
@@ -94,6 +102,8 @@ package body FLTK.Widgets.Buttons is
+ -- Miscellaneous --
+
procedure fl_button_simulate_key_action
(B : in Storage.Integer_Address);
pragma Import (C, fl_button_simulate_key_action, "fl_button_simulate_key_action");
@@ -196,11 +206,11 @@ package body FLTK.Widgets.Buttons is
begin
return This : Button do
This.Void_Ptr := new_fl_button
- (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;
@@ -226,6 +236,8 @@ package body FLTK.Widgets.Buttons is
-- API Subprograms --
-----------------------
+ -- State --
+
function Is_On
(This : in Button)
return Boolean is
@@ -259,6 +271,8 @@ package body FLTK.Widgets.Buttons is
+ -- Settings --
+
function Get_Down_Box
(This : in Button)
return Box_Kind is
@@ -293,6 +307,8 @@ package body FLTK.Widgets.Buttons is
+ -- Drawing, Events --
+
procedure Draw
(This : in out Button) is
begin
@@ -311,6 +327,8 @@ package body FLTK.Widgets.Buttons is
+ -- Miscellaneous --
+
procedure Simulate_Key_Action
(This : in out Button) is
begin