From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- doc/fl_text_editor.html | 379 +++++++++++++++++++++++++++--------------------- 1 file changed, 210 insertions(+), 169 deletions(-) (limited to 'doc/fl_text_editor.html') diff --git a/doc/fl_text_editor.html b/doc/fl_text_editor.html index 35a7d90..79c9488 100644 --- a/doc/fl_text_editor.html +++ b/doc/fl_text_editor.html @@ -71,196 +71,40 @@ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
Functions and Procedures
-Fl_Text_Editor(int X, int Y, int W, int H, const char *L=0);
-
-function Create
-       (X, Y, W, H : in Integer;
-        Text       : in String)
-    return Text_Editor;
-
Static Protected Attributes
-void add_default_key_bindings(Key_Binding **list);
+static Key_Binding * global_key_bindings;
 
 
-void add_key_binding(int key, int state, Key_Func f, Key_Binding **list);
-
-procedure Add_Key_Binding
-       (This : in out Text_Editor;
-        Bind : in     Key_Binding);
-
-void add_key_binding(int key, int state, Key_Func f);
-
-procedure Add_Key_Binding
-       (This : in out Text_Editor;
-        Key  : in     Key_Combo;
-        Func : in     Key_Func);
-
 
-procedure Add_Key_Bindings
-       (This : in out Text_Editor;
-        List : in     Key_Binding_List);
-
-Key_Func bound_key_function(int key, int state, Key_Binding *list) const;
-
 
-Key_Func bound_key_function(int key, int state) const;
-
-function Get_Bound_Key_Function
-       (This : in Text_Editor;
-        Key  : in Key_Combo)
-    return Key_Func;
-
-void default_key_function(Key_Func f);
-
-procedure Set_Default_Key_Function
-       (This : in out Text_Editor;
-        Func : in     Default_Key_Func);
-
 
-function Get_Default_Key_Function
-       (This : in Text_Editor)
-    return Default_Key_Func;
-
 
-procedure Draw
-       (This : in out Text_Editor);
-
-virtual int handle(int e);
-
-function Handle
-       (This  : in out Text_Editor;
-        Event : in     Event_Kind)
-    return Event_Outcome;
-
- -
-void insert_mode(int b);
-
-
-procedure Set_Insert_Mode
-       (This : in out Text_Editor;
-        To   : in     Insert_Mode);
-
- - -
-int insert_mode();
-
-
-function Get_Insert_Mode
-       (This : in Text_Editor)
-    return Insert_Mode;
-
- - -
-void remove_all_key_bindings(Key_Binding **list);
-
-
-procedure Remove_Key_Bindings
-       (This : in out Text_Editor;
-        List : in     Key_Binding_List);
-
- + + - - - - +
Constructors
-void remove_all_key_bindings();
+Fl_Text_Editor(int X, int Y, int W, int H, const char *L=0);
 
-procedure Remove_All_Key_Bindings
-       (This : in out Text_Editor);
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String := "")
+    return Text_Editor;
 
-void remove_key_binding(int key, int state, Key_Binding **list);
-
-procedure Remove_Key_Binding
-       (This : in out Text_Editor;
-        Bind : in     Key_Binding);
-
- -
-void remove_key_binding(int key, int state);
-
-
-procedure Remove_Key_Binding
-       (This : in out Text_Editor;
-        Key  : in     Key_Combo);
-
- - -
-void tab_nav(int val);
-
-TBA - - -
-int tab_nav() const;
-
-TBA - + +
Static Functions and Procedures
@@ -570,6 +414,203 @@ procedure KF_Up
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+void add_default_key_bindings(Key_Binding **list);
+
 
+void add_key_binding(int key, int state, Key_Func f, Key_Binding **list);
+
+procedure Add_Key_Binding
+       (This : in out Text_Editor;
+        Bind : in     Key_Binding);
+
+void add_key_binding(int key, int state, Key_Func f);
+
+procedure Add_Key_Binding
+       (This : in out Text_Editor;
+        Key  : in     Key_Combo;
+        Func : in     Key_Func);
+
 
+procedure Add_Key_Bindings
+       (This : in out Text_Editor;
+        List : in     Key_Binding_List);
+
+Key_Func bound_key_function(int key, int state, Key_Binding *list) const;
+
 
+Key_Func bound_key_function(int key, int state) const;
+
+function Get_Bound_Key_Function
+       (This : in Text_Editor;
+        Key  : in Key_Combo)
+    return Key_Func;
+
+void default_key_function(Key_Func f);
+
+procedure Set_Default_Key_Function
+       (This : in out Text_Editor;
+        Func : in     Default_Key_Func);
+
 
+function Get_Default_Key_Function
+       (This : in Text_Editor)
+    return Default_Key_Func;
+
+virtual int handle(int e);
+
+function Handle
+       (This  : in out Text_Editor;
+        Event : in     Event_Kind)
+    return Event_Outcome;
+
+void insert_mode(int b);
+
+procedure Set_Insert_Mode
+       (This : in out Text_Editor;
+        To   : in     Insert_Mode);
+
+int insert_mode();
+
+function Get_Insert_Mode
+       (This : in Text_Editor)
+    return Insert_Mode;
+
+void remove_all_key_bindings(Key_Binding **list);
+
+procedure Remove_Key_Bindings
+       (This : in out Text_Editor;
+        List : in     Key_Binding_List);
+
+void remove_all_key_bindings();
+
+procedure Remove_All_Key_Bindings
+       (This : in out Text_Editor);
+
+void remove_key_binding(int key, int state, Key_Binding **list);
+
+procedure Remove_Key_Binding
+       (This : in out Text_Editor;
+        Bind : in     Key_Binding);
+
+void remove_key_binding(int key, int state);
+
+procedure Remove_Key_Binding
+       (This : in out Text_Editor;
+        Key  : in     Key_Combo);
+
+void tab_nav(int val);
+
TBA
+int tab_nav() const;
+
TBA
+ + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+int handle_key();
+
 
+void maybe_do_callback();
+
 
+ + -- cgit