1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Added some new versions of Graphics::drawText and drawFittedText that take Rectangle parameters.

This commit is contained in:
jules 2012-07-14 11:54:29 +01:00
parent 006e324114
commit dc9e0cb9bb
16 changed files with 87 additions and 56 deletions

View file

@ -96,9 +96,7 @@ void JucerTreeViewBase::paintContent (Graphics& g, const Rectangle<int>& area)
g.setColour (isMissing() ? getContrastingColour (Colours::red, 0.8f)
: getContrastingColour (0.8f));
g.drawFittedText (getDisplayName(),
area.getX(), area.getY(), area.getWidth(), area.getHeight(),
Justification::centredLeft, 1, 0.8f);
g.drawFittedText (getDisplayName(), area, Justification::centredLeft, 1, 0.8f);
}
Component* JucerTreeViewBase::createItemComponent()