class Fl_Input


Class Hierarchy

Include Files

Description

This is the FLTK text display widget. It allows the user to view multiple lines of text and supports highlighting and scrolling. The buffer that is displayed in the widget is managed by the Fl_Text_Buffer class.

Methods

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

~Fl_Text_Display();

void buffer(Fl_Text_Buffer* buf);
void buffer(Fl_Text_Buffer& buf);
Fl_Text_Buffer* buffer();

void cursor_style(int style);

void hide_cursor();

void highlight_data(Fl_Text_Buffer *styleBuffer, Style_Table_Entry *styleTable, int nStyles, char unfinishedStyle, Unfinished_Style_Cb unfinishedHighlightCB, void *cbArg);

int in_selection(int x, int y);

void insert(const char* text);

void insert_position(int newPos);
int insert_position()

int move_down();

int move_left();

int move_right();

int move_up();

void next_word(void);

void overstrike(const char* text);

int position_style(int lineStartPos, int lineLen, int lineIndex, int dispIndex);

void previous_word(void);

void redisplay_range(int start, int end);

void scrollbar_align(Fl_Align a);
Fl_Align scrollbar_align();

void scrollbar_width(int w);
int scrollbar_width();

void scroll(int topLineNum, int horizOffset);

void show_cursor(int b = 1);

void show_insert_position();

void textcolor(unsigned n);
Fl_Color textcolor() const;

void textfont(uchar s);
Fl_Font textfont() const;

void textsize(uchar s);
uchar textsize() const;

int word_end(int pos);

int word_start(int pos);