25 #ifndef FL_TEXT_EDITOR_H 
   26 #define FL_TEXT_EDITOR_H 
   28 #include "Fl_Text_Display.H" 
   31 #define FL_TEXT_EDITOR_ANY_STATE  (-1L) 
   69     void add_key_binding(
int key, 
int state, Key_Func f, Key_Binding** list);
 
   72       { add_key_binding(key, state, f, &key_bindings); }
 
   73     void remove_key_binding(
int key, 
int state, Key_Binding** list);
 
   76       { remove_key_binding(key, state, &key_bindings); }
 
   77     void remove_all_key_bindings(Key_Binding** list);
 
   80     void add_default_key_bindings(Key_Binding** list);
 
   81     Key_Func bound_key_function(
int key, 
int state, Key_Binding* list);
 
   84       { 
return bound_key_function(key, state, key_bindings); }
 
  117     void maybe_do_callback();
 
  121     Key_Binding* key_bindings;
 
  122     static Key_Binding* global_key_bindings;
 
  123     Key_Func default_key_function_;
 
void remove_all_key_bindings()
Removes all of the key bindings associated with the text editor or list. 
Definition: Fl_Text_Editor.H:79
int state
the state of key modifiers 
Definition: Fl_Text_Editor.H:48
void add_key_binding(int key, int state, Key_Func f)
Adds a key of state "state" with the function "function". 
Definition: Fl_Text_Editor.H:71
virtual int handle(int e)
Event handling. 
Definition: Fl_Text_Display.cxx:3790
Key_Func bound_key_function(int key, int state)
Returns the function associated with a key binding. 
Definition: Fl_Text_Editor.H:83
void default_key_function(Key_Func f)
Sets the default key function for unassigned keys. 
Definition: Fl_Text_Editor.H:86
This is the FLTK text editor widget. 
Definition: Fl_Text_Editor.H:40
void remove_key_binding(int key, int state)
Removes the key binding associated with the key "key" of state "state". 
Definition: Fl_Text_Editor.H:75
Simple linked list associating a key/state to a function. 
Definition: Fl_Text_Editor.H:46
int key
the key pressed 
Definition: Fl_Text_Editor.H:47
Key_Binding * next
next key binding in the list 
Definition: Fl_Text_Editor.H:50
int insert_mode()
Gets the current insert mode; if non-zero, new text is inserted before the current cursor position...
Definition: Fl_Text_Editor.H:67
void insert_mode(int b)
Sets the current insert mode; if non-zero, new text is inserted before the current cursor position...
Definition: Fl_Text_Editor.H:61
Rich text display widget. 
Definition: Fl_Text_Display.H:82