From c6502e2a83fb99b53b2df6581c234c508d14bcbb Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 29 Apr 2019 14:21:47 +0100 Subject: [PATCH] Added a TextEditor::getTextToShowWhenEmpty() method --- modules/juce_gui_basics/widgets/juce_TextEditor.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.h b/modules/juce_gui_basics/widgets/juce_TextEditor.h index e6d280428e..4dfe378630 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.h +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.h @@ -279,6 +279,12 @@ public: */ void setTextToShowWhenEmpty (const String& text, Colour colourToUse); + /** Returns the text that will be shown when the text editor is empty. + + @see setTextToShowWhenEmpty + */ + String getTextToShowWhenEmpty() const noexcept { return textToShowWhenEmpty; } + //============================================================================== /** Changes the size of the scrollbars that are used. Handy if you need smaller scrollbars for a small text box.