Browse Source

Added a DrawableText::getText() method.

tags/2021-05-28
jules 13 years ago
parent
commit
321931c21c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_gui_basics/drawables/juce_DrawableText.h

+ 4
- 1
modules/juce_gui_basics/drawables/juce_DrawableText.h View File

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


Loading…
Cancel
Save