From 561052191096d72b321f676401fbc8c7476a5990 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 4 Oct 2002 02:30:34 +0000 Subject: Doco updates. Reset cursor when changing the current pane in an Fl_Wizard widget. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Text_Editor.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'documentation/Fl_Text_Editor.html') diff --git a/documentation/Fl_Text_Editor.html b/documentation/Fl_Text_Editor.html index f849edaf4..a5060e972 100644 --- a/documentation/Fl_Text_Editor.html +++ b/documentation/Fl_Text_Editor.html @@ -73,101 +73,138 @@ class.

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

+

The constructor creates a new text editor widget.

~Fl_Text_Editor();

+

The destructor frees all memory used by the text editor widget.

void add_default_key_bindings(Key_Binding** list);

+

Adds all of the default editor key bindings to the specified 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);

+

Adds a single key binding to the specified or current key binding list.

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

+

Returns the function associated with a key binding.

void default_key_function(Key_Func f);

+

Sets the default key function for unassigned keys.

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

+

Sets or gets the current insert mode; if non-zero, new text +is inserted before the current cursor position. Otherwise, new +text replaces text at the current cursor position.

int kf_backspace(int c, Fl_Text_Editor* e);

+

Does a backspace in the current buffer.

int kf_copy(int c, Fl_Text_Editor* e);

+

Does a copy of selected text in the current buffer.

int kf_c_s_move(int c, Fl_Text_Editor* e);

+

Extends the current selection in the direction indicated by +control key c.

int kf_ctrl_move(int c, Fl_Text_Editor* e);

+

Moves the current text cursor in the direction indicated by +control key c.

int kf_cut(int c, Fl_Text_Editor* e);

+

Does a cut of selected text in the current buffer.

int kf_default(int c, Fl_Text_Editor* e);

+

Inserts the text associated with the key c.

int kf_delete(int c, Fl_Text_Editor* e);

+

Does a delete of selected text or the current character in +the current buffer.

int kf_down(int c, Fl_Text_Editor* e);

+

Moves the text cursor down one line.

int kf_end(int c, Fl_Text_Editor* e);

+

Moves the text cursor to the end of the current line.

int kf_enter(int c, Fl_Text_Editor* e);

+

Inserts a newline at the current cursor position.

int kf_home(int c, Fl_Text_Editor* e);

+

Moves the text cursor to the beginning of the current line.

int kf_ignore(int c, Fl_Text_Editor* e);

+

Ignores the keypress.

int kf_insert(int c, Fl_Text_Editor* e);

+

Toggles the insert mode in the text editor.

int kf_left(int c, Fl_Text_Editor* e);

+

Moves the text cursor to the left in the buffer.

int kf_move(int c, Fl_Text_Editor* e);

+

Moves the text cursor in the direction indicated by key +c.

int kf_page_down(int c, Fl_Text_Editor* e);

+

Moves the text cursor down one page.

int kf_page_up(int c, Fl_Text_Editor* e);

+

Moves the text cursor up one page.

int kf_paste(int c, Fl_Text_Editor* e);

+

Pastes the contents of the clipboard at the current text cursor position.

int kf_right(int c, Fl_Text_Editor* e);

+

Moves the text cursor one character to the right.

int kf_select_all(int c, Fl_Text_Editor* e);

+

Selects all text in the buffer.

int kf_shift_move(int c, Fl_Text_Editor* e);

+

Extends the current selection in the direction of key c.

int kf_up(int c, Fl_Text_Editor* e);

+

Moves the text cursor up one line.

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

+

Removes all of the key bindings associated with the text editor or list.

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

+

Removes a single key binding from the text editor or list. -- cgit v1.2.3