diff --git a/modules/juce_gui_basics/drawables/juce_DrawableText.h b/modules/juce_gui_basics/drawables/juce_DrawableText.h index 4e4b5ab185..fc74958b67 100644 --- a/modules/juce_gui_basics/drawables/juce_DrawableText.h +++ b/modules/juce_gui_basics/drawables/juce_DrawableText.h @@ -52,13 +52,13 @@ public: void setText (const String& newText); /** Returns the currently displayed text */ - const String& getText() const noexcept { return 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 @@ -68,9 +68,15 @@ public: */ void setFont (const Font& newFont, bool applySizeAndScale); + /** Returns the current font. */ + const Font& getFont() const noexcept { return font; } + /** Changes the justification of the text within the bounding box. */ void setJustification (const Justification& newJustification); + /** Returns the current justification. */ + const Justification& getJustification() const noexcept { return justification; } + /** Returns the parallelogram that defines the text bounding box. */ const RelativeParallelogram& getBoundingBox() const noexcept { return bounds; }