diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-08-13 10:07:17 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-08-13 10:07:17 +0000 |
| commit | 0650563c7b36b47780e0a5a50cab91e2f18be1fd (patch) | |
| tree | 577e5b6452f45337a3b95aab3ed0224869614d16 /src/Fl_Text_Editor.cxx | |
| parent | 9bedf7ab8ffa0e6ca314d01e298d74d62cb106a3 (diff) | |
Document Fl_Text_Editor::global_key_bindings and related methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 2854bfa88..891f162bf 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -192,7 +192,13 @@ void Fl_Text_Editor::remove_all_key_bindings(Key_Binding** list) { *list = 0; } -/** Removes the key binding associated with the key "key" of state "state" */ +/** Removes the key binding associated with the key \p key of state \p state + from the Key_Binding list \p list. + + This can be used in derived classes to remove global key bindings + by using the global (static) Key_Binding list + Fl_Text_Editor::global_key_bindings. +*/ void Fl_Text_Editor::remove_key_binding(int key, int state, Key_Binding** list) { Key_Binding *cur, *last = 0; for (cur = *list; cur; last = cur, cur = cur->next) @@ -202,7 +208,14 @@ void Fl_Text_Editor::remove_key_binding(int key, int state, Key_Binding** list) else *list = cur->next; delete cur; } -/** Adds a key of state "state" with the function "function" */ + +/** Adds a \p key of state \p state with the function \p function to an + arbitrary key binding list \p list. + + This can be used in derived classes to add global key bindings + by using the global (static) Key_Binding list + Fl_Text_Editor::global_key_bindings. +*/ void Fl_Text_Editor::add_key_binding(int key, int state, Key_Func function, Key_Binding** list) { Key_Binding* kb = new Key_Binding; |
