Fl_Text_Display Binding Map

Back to Index
Package name
Fl_Text_Display FLTK.Widgets.Groups.Text_Displays
Types
Fl_Text_Display Text_Display
  Text_Display_Reference
enum { NORMAL_CURSOR, CARET_CURSOR, DIM_CURSOR, BLOCK_CURSOR, HEAVY_CURSOR, SIMPLE_CURSOR } Cursor_Style
enum { CURSOR_POS, CHARACTER_POS }  
enum { DRAG_NONE = -2, DRAG_START_DND = -1, DRAG_CHAR = 0, DRAG_WORD = 1, DRAG_LINE = 2 }  
enum { WRAP_NONE, WRAP_AT_COLUMN, WRAP_AT_PIXEL, WRAP_AT_BOUNDS } Wrap_Mode
Unfinished_Style_Cb Unfinished_Style_Callback
Style_Table_Entry Style_Entry
  Style_Index
  Style_Array
Functions and Procedures
Fl_Text_Display(int X, int Y, int W, int H, const char *L=0);
function Create
       (X, Y, W, H : in Integer;
        Text       : in String)
    return Text_Display;
void buffer(Fl_Text_Buffer *buf);
void buffer(Fl_Text_Buffer &buf);
procedure Set_Buffer
       (This : in out Text_Display;
        Buff : in out FLTK.Text_Buffers.Text_Buffer);
Fl_Text_Buffer * buffer() const;
function Get_Buffer
       (This : in Text_Display)
    return FLTK.Text_Buffers.Text_Buffer_Reference;
double col_to_x(double col) const;
function Col_To_X
       (This    : in Text_Display;
        Col_Num : in Integer)
    return Integer;
int count_lines(int start, int end, bool start_pos_is_line_start) const;
function Count_Lines
       (This                    : in Text_Display;
        Start, Finish           : in Natural;
        Start_Pos_Is_Line_Start : in Boolean := False)
    return Natural;
Fl_Color cursor_color() const;
function Get_Cursor_Color
       (This : in Text_Display)
    return Color;
void cursor_color(Fl_Color n);
procedure Set_Cursor_Color
       (This : in out Text_Display;
        Col  : in     Color);
void cursor_style(int style);
procedure Set_Cursor_Style
       (This  : in out Text_Display;
        Style : in     Cursor_Style);
virtual void draw();
procedure Draw
       (This : in out Text_Display);
virtual int handle(int e);
function Handle
       (This  : in out Text_Display;
        Event : in     Event_Kind)
    return Event_Outcome;
void hide_cursor();
procedure Hide_Cursor
       (This : in out Text_Display);
void highlight_data
   (Fl_Text_Buffer *styleBuffer,
    const Style_Table_Entry *styleTable,
    int nStyles,
    char unfinishedStyle,
    Unfinished_Style_Cb unfinishedHighlightCB,
    void *cbArg);
procedure Highlight_Data
       (This  : in out Text_Display;
        Buff  : in out FLTK.Text_Buffers.Text_Buffer;
        Table : in     Styles.Style_Array);

procedure Highlight_Data
       (This       : in out Text_Display;
        Buff       : in out FLTK.Text_Buffers.Text_Buffer;
        Table      : in     Styles.Style_Array;
        Unfinished : in     Styles.Style_Index;
        Callback   : in     Styles.Unfinished_Style_Callback);
int in_selection(int x, int y) const;
function In_Selection
       (This : in Text_Display;
        X, Y : in Integer)
    return Boolean;
void insert(const char *text);
procedure Insert_Text
       (This : in out Text_Display;
        Item : in     String);
void insert_position(int newPos);
procedure Set_Insert_Position
       (This : in out Text_Display;
        Pos  : in     Natural);
int insert_position() const;
function Get_Insert_Position
       (This : in Text_Display)
    return Natural;
 
function Item
       (Tint : in Color;
        Font : in Font_Kind;
        Size : in Font_Size)
    return Style_Entry;
int line_end(int startPos, bool startPosIsLineStart) const;
function Line_End
       (This                    : in Text_Display;
        Pos                     : in Natural;
        Start_Pos_Is_Line_Start : in Boolean := False)
    return Natural;
int line_start(int pos) const;
function Line_Start
       (This : in Text_Display;
        Pos  : in Natural)
    return Natural;
void linenumber_align(Fl_Align val);
procedure Set_Linenumber_Alignment
       (This : in out Text_Display;
        To   : in     Alignment);
Fl_Align linenumber_align() const;
function Get_Linenumber_Alignment
       (This : in Text_Display)
    return Alignment;
void linenumber_bgcolor(Fl_Color val);
procedure Set_Linenumber_Back_Color
       (This : in out Text_Display;
        To   : in     Color);
Fl_Color linenumber_bgcolor() const;
function Get_Linenumber_Back_Color
       (This : in Text_Display)
    return Color;
void linenumber_fgcolor(Fl_Color val);
procedure Set_Linenumber_Fore_Color
       (This : in out Text_Display;
        To   : in     Color);
Fl_Color linenumber_fgcolor() const;
function Get_Linenumber_Fore_Color
       (This : in Text_Display)
    return Color;
void linenumber_font(Fl_Font val);
procedure Set_Linenumber_Font
       (This : in out Text_Display;
        To   : in     Font_Kind);
Fl_Font linenumber_font() const;
function Get_Linenumber_Font
       (This : in Text_Display)
    return Font_Kind;
void linenumber_format(const char *val);
 
const char * linenumber_format() const;
 
void linenumber_size(Fl_Fontsize val);
procedure Set_Linenumber_Size
       (This : in out Text_Display;
        To   : in     Font_Size);
Fl_Fontsize linenumber_size() const;
function Get_Linenumber_Size
       (This : in Text_Display)
    return Font_Size;
void linenumber_width(int width);
procedure Set_Linenumber_Width
       (This  : in out Text_Display;
        Width : in     Natural);
int linenumber_width() const;
function Get_Linenumber_Width
       (This : in Text_Display)
    return Natural;
int move_down();
procedure Move_Down
       (This : in out Text_Display);
int move_left();
procedure Move_Left
       (This : in out Text_Display);
int move_right();
procedure Move_Right
       (This : in out Text_Display);
int move_up();
procedure Move_Up
       (This : in out Text_Display);
void next_word(void);
procedure Next_Word
       (This : in out Text_Display);
void overstrike(const char *text);
procedure Overstrike
       (This : in out Text_Display;
        Text : in     String);
int position_style(int lineStartPos, int lineLen, int lineIndex) const;
 
int position_to_xy(int pos, int *x, int *y) const;
procedure Position_To_XY
       (This     : in     Text_Display;
        Pos      : in     Integer;
        X, Y     :    out Integer;
        Vert_Out :    out Boolean);
void previous_word(void);
procedure Previous_Word
       (This : in out Text_Display);
void redisplay_range(int start, int end);
procedure Redisplay_Range
       (This          : in out Text_Display;
        Start, Finish : in     Natural);
virtual void resize(int X, int Y, int W, int H);
 
int rewind_lines(int startPos, int nLines);
function Rewind_Lines
       (This         : in Text_Display;
        Start, Lines : in Natural)
    return Natural;
void scroll(int topLineNum, int horizOffset);
procedure Scroll_To
       (This : in out Text_Display;
        Line : in     Natural);
Fl_Align scrollbar_align() const;
function Get_Scrollbar_Alignment
       (This : in Text_Display)
    return Alignment;
void scrollbar_align(Fl_Align a);
procedure Set_Scrollbar_Alignment
       (This  : in out Text_Display;
        Align : in     Alignment);
int scrollbar_width() const;
function Get_Scrollbar_Width
       (This : in Text_Display)
    return Natural;
void scrollbar_width(int W);
procedure Set_Scrollbar_Width
       (This  : in out Text_Display;
        Width : in     Natural);
int shortcut() const;
 
void shortcut(int s);
 
void show_cursor(int b=1);
procedure Show_Cursor
       (This : in out Text_Display);
void show_insert_position();
procedure Show_Insert_Position
       (This : in out Text_Display);
int skip_lines(int startPos, int nLines, bool startPosIsLineStart);
function Skip_Lines
       (This                    : in Text_Display;
        Start, Lines            : in Natural;
        Start_Pos_Is_Line_Start : in Boolean := False)
    return Natural;
Fl_Color textcolor() const;
function Get_Text_Color
       (This : in Text_Display)
    return Color;
void textcolor(Fl_Color n);
procedure Set_Text_Color
       (This : in out Text_Display;
        Col  : in     Color);
Fl_Font textfont() const;
function Get_Text_Font
       (This : in Text_Display)
    return Font_Kind;
void textfont(Fl_Font s);
procedure Set_Text_Font
       (This : in out Text_Display;
        Font : in     Font_Kind);
Fl_Fontsize textsize() const;
function Get_Text_Size
       (This : in Text_Display)
    return Font_Size;
void textsize(Fl_Fontsize s);
procedure Set_Text_Size
       (This : in out Text_Display;
        Size : in     Font_Size);
int word_end(int pos) const;
function Word_End
       (This : in out Text_Display;
        Pos  : in     Natural)
    return Natural;
int word_start(int pos) const;
function Word_Start
       (This : in out Text_Display;
        Pos  : in     Natural)
    return Natural;
void wrap_mode(int wrap, int wrap_margin);
procedure Set_Wrap_Mode
       (This   : in out Text_Display;
        Mode   : in     Wrap_Mode;
        Margin : in     Natural := 0);
int wrapped_column(int row, int column) const;
 
int wrapped_row(int row) const;
 
double x_to_col(double x) const;
function X_To_Col
       (This  : in Text_Display;
        X_Pos : in Integer)
    return Integer;