From 6f04232dd9a835a1ec764047b79ede5b4e340727 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 16 Sep 2020 13:33:05 -0700 Subject: Added Fl_Text_Display::style_buffer(), solves issue #138 --- FL/Fl_Text_Display.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index 59dc24bee..bd390f0a4 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -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); -- cgit v1.2.3