fltk::TextEditor Class Reference

Inherits fltk::TextDisplay.

List of all members.

Public Types

typedef int(* Key_Func )(int key, TextEditor *editor)

Public Member Functions

void add_default_key_bindings (Key_Binding **list)
void add_key_binding (int key, int state, Key_Func f)
void add_key_binding (int key, int state, Key_Func f, Key_Binding **list)
Key_Func bound_key_function (int key, int state)
Key_Func bound_key_function (int key, int state, Key_Binding *list)
void default_key_function (Key_Func f)
virtual int handle (int e)
bool insert_mode () const
void insert_mode (bool b)
void remove_all_key_bindings ()
void remove_all_key_bindings (Key_Binding **list)
void remove_key_binding (int key, int state)
void remove_key_binding (int key, int state, Key_Binding **list)
 TextEditor (int X, int Y, int W, int H, const char *l=0)

Static Public Member Functions

static int kf_backspace (int c, TextEditor *e)
static int kf_c_s_move (int c, TextEditor *e)
static int kf_copy (int c, TextEditor *e)
static int kf_ctrl_move (int c, TextEditor *e)
static int kf_cut (int c, TextEditor *e)
static int kf_default (int c, TextEditor *e)
static int kf_delete (int c, TextEditor *e)
static int kf_down (int c, TextEditor *e)
static int kf_end (int c, TextEditor *e)
static int kf_enter (int c, TextEditor *e)
static int kf_home (int, TextEditor *e)
static int kf_ignore (int c, TextEditor *e)
static int kf_insert (int c, TextEditor *e)
static int kf_left (int c, TextEditor *e)
static int kf_move (int c, TextEditor *e)
static int kf_page_down (int c, TextEditor *e)
static int kf_page_up (int c, TextEditor *e)
static int kf_paste (int c, TextEditor *e)
static int kf_right (int c, TextEditor *e)
static int kf_select_all (int c, TextEditor *e)
static int kf_shift_move (int c, TextEditor *e)
static int kf_undo (int c, TextEditor *e)
static int kf_up (int c, TextEditor *e)

Static Public Attributes

static NamedStyledefault_style

Protected Member Functions

int handle_key ()
void maybe_do_callback ()

Protected Attributes

Key_Func default_key_function_
bool insert_mode_
Key_Binding * key_bindings

Static Protected Attributes

static Key_Binding * global_key_bindings


Detailed Description

TextEditor

Member Function Documentation

void fltk::TextEditor::insert_mode ( bool  b  )  [inline]

Set new insert mode. true=insert, false=overstrike

bool fltk::TextEditor::insert_mode (  )  const [inline]

Return current insert mode


Wed Jun 17 08:58:25 2009. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.