From 321931c21ca35679345af9afe6e790f3600f393d Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 26 Apr 2012 13:58:36 +0100 Subject: [PATCH] Added a DrawableText::getText() method. --- modules/juce_gui_basics/drawables/juce_DrawableText.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/drawables/juce_DrawableText.h b/modules/juce_gui_basics/drawables/juce_DrawableText.h index b3bd73f7c1..4e4b5ab185 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableText.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableText.h @@ -51,11 +51,14 @@ public: /** Sets the text to display.*/ void setText (const String& newText); + /** Returns the currently displayed text */ + const String& getText() const noexcept { return text;} + /** Sets the colour of the text. */ void setColour (const Colour& newColour); /** Returns the current text colour. */ - const Colour& getColour() const noexcept { return colour; } + const Colour& getColour() const noexcept { return colour; } /** Sets the font to use. Note that the font height and horizontal scale are set as RelativeCoordinates using