summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-29 12:57:08 +0100
committerGitHub <noreply@github.com>2025-11-29 12:57:08 +0100
commit349b818d3fd4f568160537616857b9ff7d68d3aa (patch)
treeaa4deb3b74345abf0dd6584bd9e3139c5812e43d /FL
parent725be0116f1d4dbcd64a99b555572341f2d29eda (diff)
Fluid: convert modal panels into tabs in the widget panel (#1339)
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Text_Buffer.H7
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.
*/