diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
commit | e93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch) | |
tree | 3661530027db6809a9cbad7b2477416009e00787 /doc/fl_text_editor.html | |
parent | 53aa8144851913994b963ed611cca8885b8f9a9e (diff) |
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'doc/fl_text_editor.html')
-rw-r--r-- | doc/fl_text_editor.html | 379 |
1 files changed, 210 insertions, 169 deletions
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 @@ <table class="function"> - <tr><th colspan="2">Functions and Procedures</th></tr> - - <tr> -<td><pre> -Fl_Text_Editor(int X, int Y, int W, int H, const char *L=0); -</pre></td> -<td><pre> -function Create - (X, Y, W, H : in Integer; - Text : in String) - return Text_Editor; -</pre></td> - </tr> + <tr><th colspan="2">Static Protected Attributes</th></tr> <tr> <td><pre> -void add_default_key_bindings(Key_Binding **list); +static Key_Binding * global_key_bindings; </pre></td> <td> </td> </tr> - <tr> -<td><pre> -void add_key_binding(int key, int state, Key_Func f, Key_Binding **list); -</pre></td> -<td><pre> -procedure Add_Key_Binding - (This : in out Text_Editor; - Bind : in Key_Binding); -</pre></td> - </tr> - - <tr> -<td><pre> -void add_key_binding(int key, int state, Key_Func f); -</pre></td> -<td><pre> -procedure Add_Key_Binding - (This : in out Text_Editor; - Key : in Key_Combo; - Func : in Key_Func); -</pre></td> - </tr> - - <tr> -<td> </td> -<td><pre> -procedure Add_Key_Bindings - (This : in out Text_Editor; - List : in Key_Binding_List); -</pre></td> - </tr> - - <tr> -<td><pre> -Key_Func bound_key_function(int key, int state, Key_Binding *list) const; -</pre></td> -<td> </td> - </tr> - - <tr> -<td><pre> -Key_Func bound_key_function(int key, int state) const; -</pre></td> -<td><pre> -function Get_Bound_Key_Function - (This : in Text_Editor; - Key : in Key_Combo) - return Key_Func; -</pre></td> - </tr> - - <tr> -<td><pre> -void default_key_function(Key_Func f); -</pre></td> -<td><pre> -procedure Set_Default_Key_Function - (This : in out Text_Editor; - Func : in Default_Key_Func); -</pre></td> - </tr> - - <tr> -<td> </td> -<td><pre> -function Get_Default_Key_Function - (This : in Text_Editor) - return Default_Key_Func; -</pre></td> - </tr> - - <tr> -<td> </td> -<td><pre> -procedure Draw - (This : in out Text_Editor); -</pre></td> - </tr> - - <tr> -<td><pre> -virtual int handle(int e); -</pre></td> -<td><pre> -function Handle - (This : in out Text_Editor; - Event : in Event_Kind) - return Event_Outcome; -</pre></td> - </tr> +</table> - <tr> -<td><pre> -void insert_mode(int b); -</pre></td> -<td><pre> -procedure Set_Insert_Mode - (This : in out Text_Editor; - To : in Insert_Mode); -</pre></td> - </tr> - <tr> -<td><pre> -int insert_mode(); -</pre></td> -<td><pre> -function Get_Insert_Mode - (This : in Text_Editor) - return Insert_Mode; -</pre></td> - </tr> - <tr> -<td><pre> -void remove_all_key_bindings(Key_Binding **list); -</pre></td> -<td><pre> -procedure Remove_Key_Bindings - (This : in out Text_Editor; - List : in Key_Binding_List); -</pre></td> - </tr> +<table class="function"> + <tr><th colspan="2">Constructors</th></tr> <tr> <td><pre> -void remove_all_key_bindings(); +Fl_Text_Editor(int X, int Y, int W, int H, const char *L=0); </pre></td> <td><pre> -procedure Remove_All_Key_Bindings - (This : in out Text_Editor); +function Create + (X, Y, W, H : in Integer; + Text : in String := "") + return Text_Editor; </pre></td> </tr> - <tr> -<td><pre> -void remove_key_binding(int key, int state, Key_Binding **list); -</pre></td> -<td><pre> -procedure Remove_Key_Binding - (This : in out Text_Editor; - Bind : in Key_Binding); -</pre></td> - </tr> +</table> - <tr> -<td><pre> -void remove_key_binding(int key, int state); -</pre></td> -<td><pre> -procedure Remove_Key_Binding - (This : in out Text_Editor; - Key : in Key_Combo); -</pre></td> - </tr> - <tr> -<td><pre> -void tab_nav(int val); -</pre></td> -<td>TBA</td> - </tr> - <tr> -<td><pre> -int tab_nav() const; -</pre></td> -<td>TBA</td> - </tr> +<table class="function"> + <tr><th colspan="2">Static Functions and Procedures</th></tr> <tr> <td><pre> @@ -570,6 +414,203 @@ procedure KF_Up </table> + +<table class="function"> + <tr><th colspan="2">Functions and Procedures</th></tr> + + <tr> +<td><pre> +void add_default_key_bindings(Key_Binding **list); +</pre></td> +<td> </td> + </tr> + + <tr> +<td><pre> +void add_key_binding(int key, int state, Key_Func f, Key_Binding **list); +</pre></td> +<td><pre> +procedure Add_Key_Binding + (This : in out Text_Editor; + Bind : in Key_Binding); +</pre></td> + </tr> + + <tr> +<td><pre> +void add_key_binding(int key, int state, Key_Func f); +</pre></td> +<td><pre> +procedure Add_Key_Binding + (This : in out Text_Editor; + Key : in Key_Combo; + Func : in Key_Func); +</pre></td> + </tr> + + <tr> +<td> </td> +<td><pre> +procedure Add_Key_Bindings + (This : in out Text_Editor; + List : in Key_Binding_List); +</pre></td> + </tr> + + <tr> +<td><pre> +Key_Func bound_key_function(int key, int state, Key_Binding *list) const; +</pre></td> +<td> </td> + </tr> + + <tr> +<td><pre> +Key_Func bound_key_function(int key, int state) const; +</pre></td> +<td><pre> +function Get_Bound_Key_Function + (This : in Text_Editor; + Key : in Key_Combo) + return Key_Func; +</pre></td> + </tr> + + <tr> +<td><pre> +void default_key_function(Key_Func f); +</pre></td> +<td><pre> +procedure Set_Default_Key_Function + (This : in out Text_Editor; + Func : in Default_Key_Func); +</pre></td> + </tr> + + <tr> +<td> </td> +<td><pre> +function Get_Default_Key_Function + (This : in Text_Editor) + return Default_Key_Func; +</pre></td> + </tr> + + <tr> +<td><pre> +virtual int handle(int e); +</pre></td> +<td><pre> +function Handle + (This : in out Text_Editor; + Event : in Event_Kind) + return Event_Outcome; +</pre></td> + </tr> + + <tr> +<td><pre> +void insert_mode(int b); +</pre></td> +<td><pre> +procedure Set_Insert_Mode + (This : in out Text_Editor; + To : in Insert_Mode); +</pre></td> + </tr> + + <tr> +<td><pre> +int insert_mode(); +</pre></td> +<td><pre> +function Get_Insert_Mode + (This : in Text_Editor) + return Insert_Mode; +</pre></td> + </tr> + + <tr> +<td><pre> +void remove_all_key_bindings(Key_Binding **list); +</pre></td> +<td><pre> +procedure Remove_Key_Bindings + (This : in out Text_Editor; + List : in Key_Binding_List); +</pre></td> + </tr> + + <tr> +<td><pre> +void remove_all_key_bindings(); +</pre></td> +<td><pre> +procedure Remove_All_Key_Bindings + (This : in out Text_Editor); +</pre></td> + </tr> + + <tr> +<td><pre> +void remove_key_binding(int key, int state, Key_Binding **list); +</pre></td> +<td><pre> +procedure Remove_Key_Binding + (This : in out Text_Editor; + Bind : in Key_Binding); +</pre></td> + </tr> + + <tr> +<td><pre> +void remove_key_binding(int key, int state); +</pre></td> +<td><pre> +procedure Remove_Key_Binding + (This : in out Text_Editor; + Key : in Key_Combo); +</pre></td> + </tr> + + <tr> +<td><pre> +void tab_nav(int val); +</pre></td> +<td>TBA</td> + </tr> + + <tr> +<td><pre> +int tab_nav() const; +</pre></td> +<td>TBA</td> + </tr> + +</table> + + + +<table class="function"> + <tr><th colspan="2">Protected Functions and Procedures</th></tr> + + <tr> +<td><pre> +int handle_key(); +</pre></td> +<td> </td> + </tr> + + <tr> +<td><pre> +void maybe_do_callback(); +</pre></td> +<td> </td> + </tr> + +</table> + + </body> </html> |