summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-valuators-counters.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-valuators-counters.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-widgets-valuators-counters.adb')
-rw-r--r--body/fltk-widgets-valuators-counters.adb26
1 files changed, 21 insertions, 5 deletions
diff --git a/body/fltk-widgets-valuators-counters.adb b/body/fltk-widgets-valuators-counters.adb
index e04e180..1c5426f 100644
--- a/body/fltk-widgets-valuators-counters.adb
+++ b/body/fltk-widgets-valuators-counters.adb
@@ -17,6 +17,8 @@ package body FLTK.Widgets.Valuators.Counters is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_counter
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -32,6 +34,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Button Steps --
+
function fl_counter_get_step
(C : in Storage.Integer_Address)
return Interfaces.C.double;
@@ -59,6 +63,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Text Settings --
+
function fl_counter_get_textcolor
(C : in Storage.Integer_Address)
return Interfaces.C.unsigned;
@@ -98,6 +104,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Drawing, Events --
+
procedure fl_counter_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_counter_draw, "fl_counter_draw");
@@ -167,11 +175,11 @@ package body FLTK.Widgets.Valuators.Counters is
begin
return This : Counter do
This.Void_Ptr := new_fl_counter
- (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;
@@ -197,6 +205,8 @@ package body FLTK.Widgets.Valuators.Counters is
-- API Subprograms --
-----------------------
+ -- Button Steps --
+
function Get_Step
(This : in Counter)
return Long_Float is
@@ -243,6 +253,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Text Settings --
+
function Get_Text_Color
(This : in Counter)
return Color is
@@ -293,6 +305,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Drawing, Events --
+
procedure Draw
(This : in out Counter) is
begin
@@ -311,6 +325,8 @@ package body FLTK.Widgets.Valuators.Counters is
+ -- Counter Type --
+
function Get_Kind
(This : in out Counter)
return Counter_Kind