class fltk::TextDisplay


Class Hierarchy

fltk::Group
   |
   +----fltk::TextDisplay----fltk::TextBuffer
           |
           +----fltk::TextEditor

Include Files

#include <FL/TextDisplay.H>

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 fltk::TextBuffer class.

Methods

fltk::TextDisplay(int X, int Y, int W, int H, const char *l = 0);

~TextDisplay();

void buffer(fltk::TextBuffer* buf);
void buffer(fltk::TextBuffer& buf);
fltk::TextBuffer* buffer();

void cursor_style(int style);

void hide_cursor();

void highlight_data(fltk::TextBuffer *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(fltk::Align a);
fltk::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);
fltk::Color textcolor() const;

void textfont(uchar s);
fltk::Font textfont() const;

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

int word_end(int pos);

int word_start(int pos);