summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-input_choices.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-groups-input_choices.ads
parent66fba2bf75c5fc3deb2690a6a66cf504f47b7652 (diff)
Reworked widget init/create subprograms
Diffstat (limited to 'src/fltk-widgets-groups-input_choices.ads')
-rw-r--r--src/fltk-widgets-groups-input_choices.ads19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/fltk-widgets-groups-input_choices.ads b/src/fltk-widgets-groups-input_choices.ads
index 5468450..1cc2f2f 100644
--- a/src/fltk-widgets-groups-input_choices.ads
+++ b/src/fltk-widgets-groups-input_choices.ads
@@ -120,29 +120,23 @@ package FLTK.Widgets.Groups.Input_Choices is
private
- package INP renames FLTK.Widgets.Inputs;
- package MB renames FLTK.Widgets.Menus.Menu_Buttons;
-
-
- type Input_Access is access INP.Input;
- type Menu_Button_Access is access MB.Menu_Button;
-
-
type Input_Choice is new Group with record
- My_Input : Input_Access;
- My_Menu_Button : Menu_Button_Access;
+ My_Input : aliased Inputs.Input;
+ My_Menu_Button : aliased Menus.Menu_Buttons.Menu_Button;
end record;
overriding procedure Finalize
(This : in out Input_Choice);
-
+ procedure Extra_Init
+ (This : in out Input_Choice;
+ X, Y, W, H : in Integer;
+ Text : in String);
pragma Inline (Input);
pragma Inline (Menu_Button);
-
pragma Inline (Has_Changed);
pragma Inline (Clear_Changed);
pragma Inline (Get_Down_Box);
@@ -157,7 +151,6 @@ private
pragma Inline (Set_Input);
pragma Inline (Set_Item);
-
pragma Inline (Draw);
pragma Inline (Handle);