Browse Source

Added some value retrieval methods for DrawableText.

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

+ 8
- 2
modules/juce_gui_basics/drawables/juce_DrawableText.h View File

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


Loading…
Cancel
Save