summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-valuators-value_inputs.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-11-16 10:30:34 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-11-16 10:30:34 +1300
commitf5f77c762534ed15adc557009d1a645e5fd998a5 (patch)
tree7b9d8c3099c303c74bf41079e9a0785983bd8a31 /src/fltk-widgets-valuators-value_inputs.ads
parent66fba2bf75c5fc3deb2690a6a66cf504f47b7652 (diff)
Reworked widget init/create subprograms
Diffstat (limited to 'src/fltk-widgets-valuators-value_inputs.ads')
-rw-r--r--src/fltk-widgets-valuators-value_inputs.ads20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/fltk-widgets-valuators-value_inputs.ads b/src/fltk-widgets-valuators-value_inputs.ads
index 663a88d..8c45026 100644
--- a/src/fltk-widgets-valuators-value_inputs.ads
+++ b/src/fltk-widgets-valuators-value_inputs.ads
@@ -33,7 +33,7 @@ package FLTK.Widgets.Valuators.Value_Inputs is
function Input
- (This : in Value_Input)
+ (This : in out Value_Input)
return FLTK.Widgets.Inputs.Input_Reference;
@@ -111,37 +111,30 @@ package FLTK.Widgets.Valuators.Value_Inputs is
private
- package INP renames FLTK.Widgets.Inputs;
-
-
- type Input_Access is access INP.Input;
-
-
type Value_Input is new Valuator with record
- My_Input : Input_Access;
+ My_Input : aliased Inputs.Input;
end record;
overriding procedure Finalize
(This : in out Value_Input);
-
+ procedure Extra_Init
+ (This : in out Value_Input;
+ X, Y, W, H : in Integer;
+ Text : in String);
pragma Inline (Input);
-
pragma Inline (Get_Cursor_Color);
pragma Inline (Set_Cursor_Color);
-
pragma Inline (Get_Shortcut);
pragma Inline (Set_Shortcut);
-
pragma Inline (Is_Soft);
pragma Inline (Set_Soft);
-
pragma Inline (Get_Text_Color);
pragma Inline (Set_Text_Color);
pragma Inline (Get_Text_Font);
@@ -149,7 +142,6 @@ private
pragma Inline (Get_Text_Size);
pragma Inline (Set_Text_Size);
-
pragma Inline (Draw);
pragma Inline (Handle);