summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/TextEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/TextEditor.h')
-rw-r--r--Libraries/LibGUI/TextEditor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TextEditor.h b/Libraries/LibGUI/TextEditor.h
index 56dd2377c4..0bdb68258a 100644
--- a/Libraries/LibGUI/TextEditor.h
+++ b/Libraries/LibGUI/TextEditor.h
@@ -60,6 +60,9 @@ public:
virtual void set_document(TextDocument&);
+ const String& placeholder() const { return m_placeholder; }
+ void set_placeholder(const StringView& placeholder) { m_placeholder = placeholder; }
+
void set_visualize_trailing_whitespace(bool);
bool visualize_trailing_whitespace() const { return m_visualize_trailing_whitespace; }
@@ -301,6 +304,8 @@ private:
RefPtr<TextDocument> m_document;
+ String m_placeholder { "" };
+
template<typename Callback>
void for_each_visual_line(size_t line_index, Callback) const;