summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-groups-text_displays-text_editors.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-groups-text_displays-text_editors.adb')
-rw-r--r--body/fltk-widgets-groups-text_displays-text_editors.adb55
1 files changed, 50 insertions, 5 deletions
diff --git a/body/fltk-widgets-groups-text_displays-text_editors.adb b/body/fltk-widgets-groups-text_displays-text_editors.adb
index 15066f9..906edef 100644
--- a/body/fltk-widgets-groups-text_displays-text_editors.adb
+++ b/body/fltk-widgets-groups-text_displays-text_editors.adb
@@ -25,6 +25,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_text_editor
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -40,6 +42,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Default Key Function --
+
procedure fl_text_editor_default
(TE : in Storage.Integer_Address;
K : in Interfaces.C.int);
@@ -49,6 +53,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Operation Key Functions --
+
procedure fl_text_editor_undo
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_undo, "fl_text_editor_undo");
@@ -82,6 +88,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Special Key Functions --
+
procedure fl_text_editor_backspace
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_backspace, "fl_text_editor_backspace");
@@ -105,6 +113,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Movement Key Functions --
+
procedure fl_text_editor_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_home, "fl_text_editor_home");
@@ -148,6 +158,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Shift Key Functions --
+
procedure fl_text_editor_shift_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_shift_home, "fl_text_editor_shift_home");
@@ -191,6 +203,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Control Key Functions --
+
procedure fl_text_editor_ctrl_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_ctrl_home, "fl_text_editor_ctrl_home");
@@ -234,6 +248,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Control Shift Key Functions --
+
procedure fl_text_editor_ctrl_shift_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_ctrl_shift_home, "fl_text_editor_ctrl_shift_home");
@@ -277,6 +293,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Meta Key Functions --
+
procedure fl_text_editor_meta_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_meta_home, "fl_text_editor_meta_home");
@@ -320,6 +338,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Meta Shift Key Functions --
+
procedure fl_text_editor_meta_shift_home
(TE : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_meta_shift_home, "fl_text_editor_meta_shift_home");
@@ -363,6 +383,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Key Binding Modification --
+
procedure fl_text_editor_add_key_binding
(TE : in Storage.Integer_Address;
K, S : in Interfaces.C.int;
@@ -385,6 +407,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Settings --
+
function fl_text_editor_get_insert_mode
(TE : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -397,9 +421,6 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
pragma Import (C, fl_text_editor_set_insert_mode, "fl_text_editor_set_insert_mode");
pragma Inline (fl_text_editor_set_insert_mode);
-
-
-
function fl_text_editor_get_tab_nav
(TE : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -415,6 +436,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Drawing, Events --
+
procedure fl_text_editor_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_text_editor_draw, "fl_text_editor_draw");
@@ -590,6 +613,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
-- API Subprograms --
-----------------------
+ -- Default Key Function --
+
procedure KF_Default
(This : in out Text_Editor'Class;
Key : in Key_Combo) is
@@ -602,6 +627,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Operation Key Functions --
+
procedure KF_Undo
(This : in out Text_Editor'Class) is
begin
@@ -646,6 +673,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Special Key Functions --
+
procedure KF_Backspace
(This : in out Text_Editor'Class) is
begin
@@ -683,6 +712,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Movement Key Functions --
+
procedure KF_Home
(This : in out Text_Editor'Class) is
begin
@@ -741,6 +772,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Shift Key Functions --
+
procedure KF_Shift_Home
(This : in out Text_Editor'Class) is
begin
@@ -799,6 +832,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Control Key Functions --
+
procedure KF_Ctrl_Home
(This : in out Text_Editor'Class) is
begin
@@ -857,6 +892,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Control Shift Key Functions --
+
procedure KF_Ctrl_Shift_Home
(This : in out Text_Editor'Class) is
begin
@@ -915,6 +952,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Meta Key Functions --
+
procedure KF_Meta_Home
(This : in out Text_Editor'Class) is
begin
@@ -973,6 +1012,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Meta Shift Key Functions --
+
procedure KF_Meta_Shift_Home
(This : in out Text_Editor'Class) is
begin
@@ -1031,6 +1072,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Key Binding Modification --
+
procedure Add_Key_Binding
(This : in out Text_Editor;
Key : in Key_Combo;
@@ -1149,6 +1192,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Settings --
+
function Get_Insert_Mode
(This : in Text_Editor)
return Insert_Mode
@@ -1171,8 +1216,6 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
end Set_Insert_Mode;
-
-
function Get_Tab_Mode
(This : in Text_Editor)
return Tab_Navigation
@@ -1197,6 +1240,8 @@ package body FLTK.Widgets.Groups.Text_Displays.Text_Editors is
+ -- Events --
+
function Handle
(This : in out Text_Editor;
Event : in Event_Kind)