|
|
@@ -222,7 +222,7 @@ Font Graphics::getCurrentFont() const |
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
void Graphics::drawSingleLineText (const String& text, const int startX, const int baselineY,
|
|
|
|
const Justification& justification) const
|
|
|
|
Justification justification) const
|
|
|
|
{
|
|
|
|
if (text.isNotEmpty()
|
|
|
|
&& startX < context.getClipBounds().getRight())
|
|
|
@@ -266,7 +266,7 @@ void Graphics::drawMultiLineText (const String& text, const int startX, |
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawText (const String& text, const Rectangle<int>& area,
|
|
|
|
const Justification& justificationType,
|
|
|
|
Justification justificationType,
|
|
|
|
const bool useEllipsesIfTooBig) const
|
|
|
|
{
|
|
|
|
if (text.isNotEmpty() && context.clipRegionIntersects (area))
|
|
|
@@ -285,14 +285,14 @@ void Graphics::drawText (const String& text, const Rectangle<int>& area, |
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawText (const String& text, const int x, const int y, const int width, const int height,
|
|
|
|
const Justification& justificationType,
|
|
|
|
Justification justificationType,
|
|
|
|
const bool useEllipsesIfTooBig) const
|
|
|
|
{
|
|
|
|
drawText (text, Rectangle<int> (x, y, width, height), justificationType, useEllipsesIfTooBig);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawFittedText (const String& text, const Rectangle<int>& area,
|
|
|
|
const Justification& justification,
|
|
|
|
Justification justification,
|
|
|
|
const int maximumNumberOfLines,
|
|
|
|
const float minimumHorizontalScale) const
|
|
|
|
{
|
|
|
@@ -311,7 +311,7 @@ void Graphics::drawFittedText (const String& text, const Rectangle<int>& area, |
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawFittedText (const String& text, const int x, const int y, const int width, const int height,
|
|
|
|
const Justification& justification,
|
|
|
|
Justification justification,
|
|
|
|
const int maximumNumberOfLines,
|
|
|
|
const float minimumHorizontalScale) const
|
|
|
|
{
|
|
|
|