class Fl_Input_ : public Fl_Object

This is a virtual base class below Fl_Input. It has all the same interfaces, but lacks a handle() and draw() method. You may want to subclass it if you are one of those people who likes to change how the editing keys work.

This can act like any of the subclasses of Fl_Input, by setting type() to one of the following values:

#define FL_NORMAL_INPUT		0
#define FL_FLOAT_INPUT		1
#define FL_INT_INPUT		2
#define FL_MULTILINE_INPUT	4
#define FL_SECRET_INPUT		5

Besides all the methods documented in Fl_Input, the methods are provided so a subclass can edit the text:

int wordboundary(int i) const;
int lineboundary(int i) const;

void drawtext(int,int,int,int);

void handletext(int e,int,int,int,int);

int up_down_position(int i, int keepmark=0);

void maybe_do_callback();

int position() const;
int mark() const;
int position(int new_position, int new_mark);
int position(int new_position_and_new_mark);
int mark(int new_mark);

int replace(int a, int b, const char *insert, int length=0);

int cut();
int cut(int n);
int cut(int a, int b);

int insert(const char *t,int l=0);

int copy();

int undo();

int copy_cuts();

(back to contents)