class Fl_Input_ : public Fl_Widget

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 Fl_Input_::wordboundary(int i) const;
int Fl_Input_::lineboundary(int i) const;

void Fl_Input_::drawtext(int,int,int,int);

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

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

void Fl_Input_::maybe_do_callback();

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

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

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

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

int Fl_Input_::copy();

int Fl_Input_::undo();

int Fl_Input_::copy_cuts();

(back to contents)