diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Text_Buffer.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index f548f1e4e..d74ddfc79 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -23,6 +23,7 @@ #define FL_TEXT_BUFFER_H #include <stdarg.h> /* va_list */ +#include <string> #include "fl_attr.h" /* Doxygen can't find <FL/fl_attr.h> */ #undef ASSERT_UTF8 @@ -231,6 +232,12 @@ public: char* text() const; /** + \brief Get a copy of the entire contents of the text buffer. + \return text as a UTF-8 string + */ + std::string text_str() const; + + /** Replaces the entire contents of the text buffer. \param text Text must be valid UTF-8. If null, an empty string is substituted. */ |
