1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added background and outline colour IDs to BubbleComponent, and updated the arguments to the LookAndFeel::drawBubble method.

This commit is contained in:
jules 2012-07-25 12:16:42 +01:00
parent 8a006e589c
commit aea20ee144
5 changed files with 29 additions and 20 deletions

View file

@ -37,9 +37,7 @@ BubbleComponent::~BubbleComponent() {}
//==============================================================================
void BubbleComponent::paint (Graphics& g)
{
getLookAndFeel().drawBubble (g, (float) arrowTip.x, (float) arrowTip.y,
(float) content.getX(), (float) content.getY(),
(float) content.getWidth(), (float) content.getHeight());
getLookAndFeel().drawBubble (g, *this, arrowTip.toFloat(), content.toFloat());
g.reduceClipRegion (content);
g.setOrigin (content.getX(), content.getY());