Added Fl_Text_Display::style_buffer(), solves issue #138

This commit is contained in:
Greg Ercolano
2020-09-16 13:33:05 -07:00
parent 67347dd76e
commit 6f04232dd9
2 changed files with 8 additions and 0 deletions

View File

@@ -171,6 +171,13 @@ public:
\see Fl_Text_Display::buffer(Fl_Text_Buffer& buf)
*/
Fl_Text_Buffer* buffer() const { return mBuffer; }
/**
Gets the current style buffer associated with the text widget.
Multiple text widgets can be associated with the same style buffer.
\return current style buffer
\see Fl_Text_Display::highlight_data()
*/
Fl_Text_Buffer* style_buffer() const { return mStyleBuffer; }
void redisplay_range(int start, int end);
void scroll(int topLineNum, int horizOffset);

View File

@@ -407,6 +407,7 @@ void Fl_Text_Display::buffer( Fl_Text_Buffer *buf ) {
\todo "extendRangeForStyleMods" does not exist (might be a hangover
from the port from nedit). Find the correct function.
\see Fl_Text_Display::style_buffer()
*/
void Fl_Text_Display::highlight_data(Fl_Text_Buffer *styleBuffer,
const Style_Table_Entry *styleTable,