34 #ifndef FL_TEXT_EDITOR_H
35 #define FL_TEXT_EDITOR_H
37 #include "Fl_Text_Display.H"
40 #define FL_TEXT_EDITOR_ANY_STATE (-1L)
78 void add_key_binding(
int key,
int state, Key_Func f, Key_Binding** list);
81 { add_key_binding(key, state, f, &key_bindings); }
82 void remove_key_binding(
int key,
int state, Key_Binding** list);
85 { remove_key_binding(key, state, &key_bindings); }
86 void remove_all_key_bindings(Key_Binding** list);
89 void add_default_key_bindings(Key_Binding** list);
90 Key_Func bound_key_function(
int key,
int state, Key_Binding* list);
93 {
return bound_key_function(key, state, key_bindings); }
126 void maybe_do_callback();
130 Key_Binding* key_bindings;
131 static Key_Binding* global_key_bindings;
132 Key_Func default_key_function_;