#ifndef _selectable_statictext_ #define _selectable_statictext_ #include typedef int *selection; /* Use these macros to acces the selection variables */ #define LINE_NO 0 #define OFFSET 1 #define START -1 #define END -1 typedef struct selectable_statictext selectable_statictext; struct selectable_statictext : scrollable_statictext { selection selection_point(); selection start_selection(); selection end_selection(); void draw_cursor(boolean flag); boolean gt_range(selection s1, selection s2); void set_visible_selection(boolean flag); void reset_range(); void set_selection(selection sel); selection index_to_selection(int index); int selection_to_index(selection sel); void append_string(char *new_string); boolean selection_range(); void select_line(int line, colortype draw_color); void draw_text_line(int line, colortype textcolor); void select_part_line(int line, int start_pos, int end_pos, colortype colour); void draw_part_text_line(int line,int start_pos, int end_pos,colortype textcolor); int xpos_from_selection(selection sel); int start_of_word_at(int position); int start_of_line_at(int line); void do_move_to(name place); int end_of_word_at(int pos); void fix_caret_damage(); }; #endif