mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Added a few missing methods for Fl_Text_Buffer
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -123,11 +123,13 @@ class FL_EXPORT Fl_Text_Buffer {
|
|||||||
void remove_selection();
|
void remove_selection();
|
||||||
void replace_selection(const char* text);
|
void replace_selection(const char* text);
|
||||||
void secondary_select(int start, int end);
|
void secondary_select(int start, int end);
|
||||||
|
int secondary_selected() { return mSecondary.selected(); }
|
||||||
void secondary_unselect();
|
void secondary_unselect();
|
||||||
|
|
||||||
void secondary_select_rectangular(int start, int end, int rectStart,
|
void secondary_select_rectangular(int start, int end, int rectStart,
|
||||||
int rectEnd);
|
int rectEnd);
|
||||||
|
|
||||||
|
int secondary_selection_position(int* start, int* end);
|
||||||
int secondary_selection_position(int* start, int* end, int* isRect,
|
int secondary_selection_position(int* start, int* end, int* isRect,
|
||||||
int* rectStart, int* rectEnd);
|
int* rectStart, int* rectEnd);
|
||||||
|
|
||||||
@@ -135,9 +137,11 @@ class FL_EXPORT Fl_Text_Buffer {
|
|||||||
void remove_secondary_selection();
|
void remove_secondary_selection();
|
||||||
void replace_secondary_selection(const char* text);
|
void replace_secondary_selection(const char* text);
|
||||||
void highlight(int start, int end);
|
void highlight(int start, int end);
|
||||||
|
int highlight() { return mHighlight.selected(); }
|
||||||
void unhighlight();
|
void unhighlight();
|
||||||
void highlight_rectangular(int start, int end, int rectStart, int rectEnd);
|
void highlight_rectangular(int start, int end, int rectStart, int rectEnd);
|
||||||
|
|
||||||
|
int highlight_position(int* start, int* end);
|
||||||
int highlight_position(int* start, int* end, int* isRect, int* rectStart,
|
int highlight_position(int* start, int* end, int* isRect, int* rectStart,
|
||||||
int* rectEnd);
|
int* rectEnd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user