class Fl_Text_Editor


Class Hierarchy

Include Files

Description

This is the FLTK text editor widget. It allows the user to edit multiple lines of text and supports highlighting and scrolling. The buffer that is displayed in the widget is managed by the Fl_Text_Buffer class.

Methods

Fl_Text_Editor(int X, int Y, int W, int H, const char* l = 0);

~Fl_Text_Editor();

void add_default_key_bindings(Key_Binding** list);

void add_key_binding(int key, int state, Key_Func f, Key_Binding** list);
void add_key_binding(int key, int state, Key_Func f);

Key_Func bound_key_function(int key, int state, Key_Binding* list);
Key_Func bound_key_function(int key, int state);

void default_key_function(Key_Func f);

void insert_mode(int b);
int insert_mode();

int kf_backspace(int c, Fl_Text_Editor* e);

int kf_copy(int c, Fl_Text_Editor* e);

int kf_c_s_move(int c, Fl_Text_Editor* e);

int kf_ctrl_move(int c, Fl_Text_Editor* e);

int kf_cut(int c, Fl_Text_Editor* e);

int kf_default(int c, Fl_Text_Editor* e);

int kf_delete(int c, Fl_Text_Editor* e);

int kf_down(int c, Fl_Text_Editor* e);

int kf_end(int c, Fl_Text_Editor* e);

int kf_enter(int c, Fl_Text_Editor* e);

int kf_home(int c, Fl_Text_Editor* e);

int kf_ignore(int c, Fl_Text_Editor* e);

int kf_insert(int c, Fl_Text_Editor* e);

int kf_left(int c, Fl_Text_Editor* e);

int kf_move(int c, Fl_Text_Editor* e);

int kf_page_down(int c, Fl_Text_Editor* e);

int kf_page_up(int c, Fl_Text_Editor* e);

int kf_paste(int c, Fl_Text_Editor* e);

int kf_right(int c, Fl_Text_Editor* e);

int kf_select_all(int c, Fl_Text_Editor* e);

int kf_shift_move(int c, Fl_Text_Editor* e);

int kf_up(int c, Fl_Text_Editor* e);

void remove_all_key_bindings(Key_Binding** list);
void remove_all_key_bindings();

void remove_key_binding(int key, int state, Key_Binding** list);
void remove_key_binding(int key, int state);