27#define FL_NORMAL_INPUT 0
28#define FL_FLOAT_INPUT 1
30#define FL_HIDDEN_INPUT 3
31#define FL_MULTILINE_INPUT 4
32#define FL_SECRET_INPUT 5
33#define FL_INPUT_TYPE 7
34#define FL_INPUT_READONLY 8
35#define FL_NORMAL_OUTPUT (FL_NORMAL_INPUT | FL_INPUT_READONLY)
36#define FL_MULTILINE_OUTPUT (FL_MULTILINE_INPUT | FL_INPUT_READONLY)
37#define FL_INPUT_WRAP 16
38#define FL_MULTILINE_INPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_WRAP)
39#define FL_MULTILINE_OUTPUT_WRAP (FL_MULTILINE_INPUT | FL_INPUT_READONLY | FL_INPUT_WRAP)
41class Fl_Input_Undo_Action;
42class Fl_Input_Undo_Action_List;
123 int xscroll_, yscroll_;
136 uchar erase_cursor_only;
151 Fl_Input_Undo_Action* undo_;
152 Fl_Input_Undo_Action_List* undo_list_;
153 Fl_Input_Undo_Action_List* redo_list_;
156 static double up_down_pos;
159 static int was_up_down;
162 const char* expand(
const char*,
char*)
const;
165 double expandpos(
const char*,
const char*,
const char*,
int*)
const;
168 void minimal_update(
int,
int);
171 void minimal_update(
int p);
174 void put_in_buffer(
int newsize);
177 void setfont()
const;
182 int word_start(
int i)
const;
185 int word_end(
int i)
const;
188 int line_start(
int i)
const;
191 int line_end(
int i)
const;
194 void drawtext(
int,
int,
int,
int);
197 void drawtext(
int,
int,
int,
int,
bool draw_active);
200 int up_down_position(
int,
int keepmark=0);
203 void handle_mouse(
int,
int,
int,
int,
int keepmark=0);
206 int handletext(
int e,
int,
int,
int,
int);
212 int xscroll()
const {
return xscroll_;}
215 int yscroll()
const {
return yscroll_;}
230 Fl_Input_(
int,
int,
int,
int,
const char* = 0);
236 int value(
const char*);
239 int value(
const char*,
int);
242 int static_value(
const char*);
245 int static_value(
const char*,
int);
257 const char*
value()
const {
return value_;}
260 unsigned int index(
int i)
const;
270 int size()
const {
return size_;}
298 int position()
const ) {
return insert_position(); }
302 int mark()
const {
return mark_;}
305 int insert_position(
int p,
int m);
306 FL_DEPRECATED(
"in 1.4.0 - use insert_position(p, m) or Fl_Widget::position(x, y) instead",
307 int position(
int p,
int m)) {
return insert_position(p, m); }
317 int position(
int p)) {
return insert_position(p); }
324 int mark(
int m) {
return insert_position(insert_position(), m);}
327 int replace(
int b,
int e,
const char *text,
int ilen=0);
339 int cut() {
return replace(insert_position(), mark(), 0);}
353 int cut(
int n) {
return replace(insert_position(), insert_position()+n, 0);}
366 int cut(
int a,
int b) {
return replace(a, b, 0);}
379 int insert(
const char* t,
int l=0){
return replace(position_, mark_, t, l);}
382 int append(
const char* t,
int l=0,
char keep_selection=0);
385 int copy(
int clipboard);
391 bool can_undo()
const;
397 bool can_redo()
const;
475 int wrap()
const {
return type() & FL_INPUT_WRAP; }
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1044
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
@ FL_DAMAGE_EXPOSE
The window was exposed.
Definition Enumerations.H:1320
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1073
Fl_Callback_Reason
These constants describe why a callback is performed.
Definition Enumerations.H:446
@ FL_REASON_UNKNOWN
unknown or unset reason
Definition Enumerations.H:447
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
#define FL_DEPRECATED(msg, func)
Enclosing a function or method in FL_DEPRECATED marks it as no longer recommended.
Definition fl_attr.h:57
unsigned char uchar
unsigned char
Definition fl_types.h:30