summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-valuators-value_outputs.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-value_outputs.adb
parentbefe66a0a98a58e0bdb31bb8c2db4a975a744072 (diff)
Slightly better / more consistent comments
Diffstat (limited to 'body/fltk-widgets-valuators-value_outputs.adb')
-rw-r--r--body/fltk-widgets-valuators-value_outputs.adb24
1 files changed, 19 insertions, 5 deletions
diff --git a/body/fltk-widgets-valuators-value_outputs.adb b/body/fltk-widgets-valuators-value_outputs.adb
index 935e021..471e58d 100644
--- a/body/fltk-widgets-valuators-value_outputs.adb
+++ b/body/fltk-widgets-valuators-value_outputs.adb
@@ -21,6 +21,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_value_output
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -36,6 +38,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
+ -- Allow Outside Range --
+
function fl_value_output_is_soft
(A : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -51,6 +55,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
+ -- Text Settings --
+
function fl_value_output_get_text_color
(TD : in Storage.Integer_Address)
return Interfaces.C.unsigned;
@@ -90,6 +96,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
+ -- Drawing, Events --
+
procedure fl_value_output_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_value_output_draw, "fl_value_output_draw");
@@ -159,11 +167,11 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
begin
return This : Value_Output do
This.Void_Ptr := new_fl_value_output
- (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;
@@ -189,6 +197,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
-- API Subprograms --
-----------------------
+ -- Allow Outside Range --
+
function Is_Soft
(This : in Value_Output)
return Boolean is
@@ -207,6 +217,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
+ -- Text Settings --
+
function Get_Text_Color
(This : in Value_Output)
return Color is
@@ -257,6 +269,8 @@ package body FLTK.Widgets.Valuators.Value_Outputs is
+ -- Drawing, Events --
+
procedure Draw
(This : in out Value_Output) is
begin