From d211b12af7662a2ea4a9d98aa2136fd23f52dd96 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 28 Nov 2001 18:00:17 +0000 Subject: Add Fl::version() and Fl::event() methods. Doco updates (use instead of
, plus more Fl_Text_Buffer docos) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Text_Buffer.html | 265 ++++++++++++-------------------------- 1 file changed, 83 insertions(+), 182 deletions(-) (limited to 'documentation/Fl_Text_Buffer.html') diff --git a/documentation/Fl_Text_Buffer.html b/documentation/Fl_Text_Buffer.html index 8ae988a6b..62ba6e2a0 100644 --- a/documentation/Fl_Text_Buffer.html +++ b/documentation/Fl_Text_Buffer.html @@ -95,7 +95,6 @@ excellent NEdit text editor engine - see

skip_lines

substitute_null_characters

tab_distance

-

tab_distance

text_in_rectangle

text_range

text

@@ -107,257 +106,159 @@ excellent NEdit text editor engine - see -

Fl_Text_Buffer

- -

~Fl_Text_Buffer

- -

add_modify_callback

- -

append

- -

appendfile

- -

call_modify_callbacks

- -

character

- -

character_width

- -

clear_rectangular

- -

copy

- -

count_displayed_characters

- -

count_lines

- -

expand_character

- -

findchar_backward

- -

findchar_forward

- -

findchars_backward

- -

findchars_forward

- -

highlight

+

Fl_Text_Buffer(int requestedSize = 0);

-

highlight_position

+

~Fl_Text_Buffer();

-

highlight_rectangular

+

void add_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);

-

highlight_selection

+

void append(const char* text);

-

highlight_text

+

int appendfile(const char *file, int buflen = 128*1024);

-

insert_column

+

void call_modify_callbacks();

-

insertfile

+

char character(int pos);

-

insert

+

static int character_width(char c, int indent, int tabDist, char nullSubsChar);

-

length

+

void clear_rectangular(int start, int end, int rectStart, int rectEnd);

-

line_end

+

void copy(Fl_Text_Buffer* fromBuf, int fromStart, int fromEnd, int toPos);

-

line_start

+

int count_displayed_characters(int lineStartPos, int targetPos);

-

line_text

+

int count_lines(int startPos, int endPos);

-

loadfile

+

int expand_character(int pos, int indent, char *outStr);
+static int expand_character(char c, int indent, char* outStr, int tabDist, +char nullSubsChar);

-

null_substitution_character

+

int findchar_backward(int startPos, char searchChar, int* foundPos);

-

outputfile

+

int findchar_forward(int startPos, char searchChar, int* foundPos);

-

overlay_rectangular

+

int findchars_backward(int startPos, const char* searchChars, int* foundPos);

-

primary_selection

+

int findchars_forward(int startPos, const char* searchChars, int* foundPos);

-

remove_modify_callback

+

void highlight(int start, int end);

-

remove_rectangular

+

int highlight_position(int* start, int* end, int* isRect, int* rectStart, +int* rectEnd);

-

remove

+

void highlight_rectangular(int start, int end, int rectStart, int rectEnd);

-

remove_secondary_selection

+

Fl_Text_Selection* highlight_selection();

-

remove_selection

+

const char* highlight_text();

-

replace_rectangular

+

void insert_column(int column, int startPos, const char* text, +int* charsInserted, int* charsDeleted);

-

replace

+

int insertfile(const char *file, int pos, int buflen = 128*1024);

-

replace_secondary_selection

+

void insert(int pos, const char* text);

-

replace_selection

+

int length();

-

rewind_lines

+

int line_end(int pos);

-

savefile

+

int line_start(int pos);

-

search_backward

+

const char* line_text(int pos);

-

search_forward

+

int loadfile(const char *file, int buflen = 128*1024);

-

secondary_selection_position

+

char null_substitution_character();

-

secondary_selection

+

int outputfile(const char *file, int start, int end, int buflen = 128*1024);

-

secondary_selection_text

+

void overlay_rectangular(int startPos, int rectStart, int rectEnd, +const char* text, int* charsInserted, int* charsDeleted);

-

secondary_select_rectangular

+

Fl_Text_Selection* primary_selection();

-

secondary_select

+

void remove_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);

-

secondary_unselect

+

void remove_rectangular(int start, int end, int rectStart, int rectEnd);

-

selected

+

void remove(int start, int end);

-

selection_position

+

void remove_secondary_selection();

-

selection_text

+

void remove_selection();

-

select_rectangular

+

void replace_rectangular(int start, int end, int rectStart, int rectEnd, +const char* text);

-

select

+

void replace(int start, int end, const char *text);

-

skip_displayed_characters

+

void replace_secondary_selection(const char* text);

-

skip_lines

+

void replace_selection(const char* text);

-

substitute_null_characters

+

int rewind_lines(int startPos, int nLines);

-

tab_distance

+

int savefile(const char *file, int buflen = 128*1024);

-

tab_distance

+

int search_backward(int startPos, const char* searchString, int* foundPos, +int matchCase = 0);

-

text_in_rectangle

+

int search_forward(int startPos, const char* searchString, int* foundPos, +int matchCase = 0);

-

text_range

+

int secondary_selection_position(int* start, int* end, int* isRect, +int* rectStart, int* rectEnd);

-

text

+

Fl_Text_Selection* secondary_selection();

-

unhighlight

+

const char* secondary_selection_text();

-

unselect

+

void secondary_select_rectangular(int start, int end, int rectStart, +int rectEnd);

-

unsubstitute_null_characters

+

void secondary_select(int start, int end);

-

word_end

+

void secondary_unselect();

-

word_start

+

int selected();

+

int selection_position(int* start, int* end);
+int selection_position(int* start, int* end, int* isRect, int* rectStart, int* rectEnd);

+

const char* selection_text();

- Fl_Text_Buffer(int requestedSize = 0); - ~Fl_Text_Buffer(); +

void select_rectangular(int start, int end, int rectStart, int rectEnd);

- int length() { return mLength; } - const char* text(); - void text(const char* text); - const char* text_range(int start, int end); - char character(int pos); - const char* text_in_rectangle(int start, int end, int rectStart, int rectEnd); - void insert(int pos, const char* text); - void append(const char* text) { insert(length(), text); } - void remove(int start, int end); - void replace(int start, int end, const char *text); - void copy(Fl_Text_Buffer* fromBuf, int fromStart, int fromEnd, int toPos); - int insertfile(const char *file, int pos, int buflen = 128*1024); - int appendfile(const char *file, int buflen = 128*1024) - { return insertfile(file, length(), buflen); } - int loadfile(const char *file, int buflen = 128*1024) - { select(0, length()); remove_selection(); return appendfile(file, buflen); } - int outputfile(const char *file, int start, int end, int buflen = 128*1024); - int savefile(const char *file, int buflen = 128*1024) - { return outputfile(file, 0, length(), buflen); } +

void select(int start, int end);

- void insert_column(int column, int startPos, const char* text, - int* charsInserted, int* charsDeleted); +

int skip_displayed_characters(int lineStartPos, int nChars);

- void replace_rectangular(int start, int end, int rectStart, int rectEnd, - const char* text); +

int skip_lines(int startPos, int nLines);

- void overlay_rectangular(int startPos, int rectStart, int rectEnd, - const char* text, int* charsInserted, - int* charsDeleted); +

int substitute_null_characters(char* string, int length);

- void remove_rectangular(int start, int end, int rectStart, int rectEnd); - void clear_rectangular(int start, int end, int rectStart, int rectEnd); - int tab_distance() { return mTabDist; } - void tab_distance(int tabDist); - void select(int start, int end); - int selected() { return mPrimary.selected(); } - void unselect(); - void select_rectangular(int start, int end, int rectStart, int rectEnd); - int selection_position(int* start, int* end); +

int tab_distance();
+void tab_distance(int tabDist);

- int selection_position(int* start, int* end, int* isRect, int* rectStart, - int* rectEnd); +

const char* text_in_rectangle(int start, int end, int rectStart, int rectEnd);

- const char* selection_text(); - void remove_selection(); - void replace_selection(const char* text); - void secondary_select(int start, int end); - void secondary_unselect(); +

const char* text_range(int start, int end);

- void secondary_select_rectangular(int start, int end, int rectStart, - int rectEnd); +

const char* text();
+void text(const char* text);

- int secondary_selection_position(int* start, int* end, int* isRect, - int* rectStart, int* rectEnd); +

void unhighlight();

- const char* secondary_selection_text(); - void remove_secondary_selection(); - void replace_secondary_selection(const char* text); - void highlight(int start, int end); - void unhighlight(); - void highlight_rectangular(int start, int end, int rectStart, int rectEnd); +

void unselect();

- int highlight_position(int* start, int* end, int* isRect, int* rectStart, - int* rectEnd); +

void unsubstitute_null_characters(char* string);

- const char* highlight_text(); - void add_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg); - void remove_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg); +

int word_end(int pos);

- void call_modify_callbacks() { call_modify_callbacks(0, 0, 0, 0, 0); } +

int word_start(int pos);

- const char* line_text(int pos); - int line_start(int pos); - int line_end(int pos); - int word_start(int pos); - int word_end(int pos); - int expand_character(int pos, int indent, char *outStr); - - static int expand_character(char c, int indent, char* outStr, int tabDist, - char nullSubsChar); - - static int character_width(char c, int indent, int tabDist, char nullSubsChar); - int count_displayed_characters(int lineStartPos, int targetPos); - int skip_displayed_characters(int lineStartPos, int nChars); - int count_lines(int startPos, int endPos); - int skip_lines(int startPos, int nLines); - int rewind_lines(int startPos, int nLines); - int findchar_forward(int startPos, char searchChar, int* foundPos); - int findchar_backward(int startPos, char searchChar, int* foundPos); - int findchars_forward(int startPos, const char* searchChars, int* foundPos); - int findchars_backward(int startPos, const char* searchChars, int* foundPos); - - int search_forward(int startPos, const char* searchString, int* foundPos, - int matchCase = 0); - - int search_backward(int startPos, const char* searchString, int* foundPos, - int matchCase = 0); - - int substitute_null_characters(char* string, int length); - void unsubstitute_null_characters(char* string); - char null_substitution_character() { return mNullSubsChar; } - Fl_Text_Selection* primary_selection() { return &mPrimary; } - Fl_Text_Selection* secondary_selection() { return &mSecondary; } - Fl_Text_Selection* highlight_selection() { return &mHighlight; } -- cgit v1.2.3