|
|
|
@@ -343,14 +343,19 @@ void Graphics::fillRect (const Rectangle<int>& r) const |
|
|
|
context.fillRect (r, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::fillRect (const Rectangle<float>& rectangle) const
|
|
|
|
{
|
|
|
|
Path p;
|
|
|
|
p.addRectangle (rectangle);
|
|
|
|
fillPath (p);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::fillRect (const float x, const float y, const float width, const float height) const
|
|
|
|
{
|
|
|
|
// passing in a silly number can cause maths problems in rendering!
|
|
|
|
jassert (areCoordsSensibleNumbers (x, y, width, height));
|
|
|
|
|
|
|
|
Path p;
|
|
|
|
p.addRectangle (x, y, width, height);
|
|
|
|
fillPath (p);
|
|
|
|
fillRect (Rectangle<float> (x, y, width, height));
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::setPixel (int x, int y) const
|
|
|
|
@@ -406,7 +411,8 @@ void Graphics::drawRect (const int x, const int y, const int width, const int he |
|
|
|
context.fillRect (Rectangle<int> (x, y + height - lineThickness, width, lineThickness), false);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawRect (const float x, const float y, const float width, const float height, const float lineThickness) const
|
|
|
|
void Graphics::drawRect (const float x, const float y, const float width, const float height,
|
|
|
|
const float lineThickness) const
|
|
|
|
{
|
|
|
|
// passing in a silly number can cause maths problems in rendering!
|
|
|
|
jassert (areCoordsSensibleNumbers (x, y, width, height));
|
|
|
|
@@ -424,6 +430,11 @@ void Graphics::drawRect (const Rectangle<int>& r, const int lineThickness) const |
|
|
|
drawRect (r.getX(), r.getY(), r.getWidth(), r.getHeight(), lineThickness);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::drawRect (const Rectangle<float>& r, const float lineThickness) const
|
|
|
|
{
|
|
|
|
drawRect (r.getX(), r.getY(), r.getWidth(), r.getHeight(), lineThickness);
|
|
|
|
}
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
void Graphics::fillEllipse (const Rectangle<float>& area) const
|
|
|
|
{
|
|
|
|
|