diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-16 10:30:34 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-11-16 10:30:34 +1300 |
commit | f5f77c762534ed15adc557009d1a645e5fd998a5 (patch) | |
tree | 7b9d8c3099c303c74bf41079e9a0785983bd8a31 /src/fltk-widgets-groups-text_displays-text_editors.ads | |
parent | 66fba2bf75c5fc3deb2690a6a66cf504f47b7652 (diff) |
Reworked widget init/create subprograms
Diffstat (limited to 'src/fltk-widgets-groups-text_displays-text_editors.ads')
-rw-r--r-- | src/fltk-widgets-groups-text_displays-text_editors.ads | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/fltk-widgets-groups-text_displays-text_editors.ads b/src/fltk-widgets-groups-text_displays-text_editors.ads index 18a3f38..67ea0e7 100644 --- a/src/fltk-widgets-groups-text_displays-text_editors.ads +++ b/src/fltk-widgets-groups-text_displays-text_editors.ads @@ -336,18 +336,18 @@ private (Index_Type => Positive, Element_Type => Key_Binding); - - - type Text_Editor is new Text_Display with - record - Bindings : Binding_Vectors.Vector; - Default_Func : Default_Key_Func; - end record; + type Text_Editor is new Text_Display with record + Bindings : Binding_Vectors.Vector; + Default_Func : Default_Key_Func; + end record; overriding procedure Finalize (This : in out Text_Editor); - + procedure Extra_Init + (This : in out Text_Editor; + X, Y, W, H : in Integer; + Text : in String); function Key_Func_Hook @@ -357,16 +357,11 @@ private pragma Convention (C, Key_Func_Hook); - - package Editor_Convert is new System.Address_To_Access_Conversions (Text_Editor'Class); - - pragma Inline (Default); - pragma Inline (Undo); pragma Inline (Cut); pragma Inline (Copy); @@ -374,13 +369,11 @@ private pragma Inline (Delete); pragma Inline (Select_All); - pragma Inline (KF_Backspace); pragma Inline (KF_Insert); pragma Inline (KF_Enter); pragma Inline (KF_Ignore); - pragma Inline (KF_Home); pragma Inline (KF_End); pragma Inline (KF_Page_Down); @@ -390,7 +383,6 @@ private pragma Inline (KF_Right); pragma Inline (KF_Up); - pragma Inline (KF_Shift_Home); pragma Inline (KF_Shift_End); pragma Inline (KF_Shift_Page_Down); @@ -400,7 +392,6 @@ private pragma Inline (KF_Shift_Right); pragma Inline (KF_Shift_Up); - pragma Inline (KF_Ctrl_Home); pragma Inline (KF_Ctrl_End); pragma Inline (KF_Ctrl_Page_Down); @@ -410,7 +401,6 @@ private pragma Inline (KF_Ctrl_Right); pragma Inline (KF_Ctrl_Up); - pragma Inline (KF_Ctrl_Shift_Home); pragma Inline (KF_Ctrl_Shift_End); pragma Inline (KF_Ctrl_Shift_Page_Down); @@ -420,21 +410,17 @@ private pragma Inline (KF_Ctrl_Shift_Right); pragma Inline (KF_Ctrl_Shift_Up); - pragma Inline (Add_Key_Binding); pragma Inline (Remove_All_Key_Bindings); pragma Inline (Get_Default_Key_Function); pragma Inline (Set_Default_Key_Function); - pragma Inline (Get_Insert_Mode); pragma Inline (Set_Insert_Mode); - -- pragma Inline (Get_Tab_Nav_Mode); -- pragma Inline (Set_Tab_Nav_Mode); - pragma Inline (Draw); pragma Inline (Handle); |