1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a TextEditor::getTextToShowWhenEmpty() method

This commit is contained in:
ed 2019-04-29 14:21:47 +01:00
parent bbbb1719f9
commit c6502e2a83

View file

@ -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.