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:
parent
006e324114
commit
dc9e0cb9bb
16 changed files with 87 additions and 56 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue