mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Added a version of Graphics::drawEllipse that takes a rectangle.
This commit is contained in:
parent
8d8848db64
commit
6dda450ad6
2 changed files with 10 additions and 0 deletions
|
|
@ -445,6 +445,11 @@ void Graphics::drawEllipse (float x, float y, float width, float height, float l
|
|||
strokePath (p, PathStrokeType (lineThickness));
|
||||
}
|
||||
|
||||
void Graphics::drawEllipse (const Rectangle<float>& area, float lineThickness) const
|
||||
{
|
||||
drawEllipse (area.getX(), area.getY(), area.getWidth(), area.getHeight(), lineThickness);
|
||||
}
|
||||
|
||||
void Graphics::fillRoundedRectangle (float x, float y, float width, float height, float cornerSize) const
|
||||
{
|
||||
fillRoundedRectangle (coordsToRectangle (x, y, width, height), cornerSize);
|
||||
|
|
|
|||
|
|
@ -352,6 +352,11 @@ public:
|
|||
void drawEllipse (float x, float y, float width, float height,
|
||||
float lineThickness) const;
|
||||
|
||||
/** Draws an elliptical stroke using the current colour or brush.
|
||||
@see fillEllipse, Path::addEllipse
|
||||
*/
|
||||
void drawEllipse (const Rectangle<float>& area, float lineThickness) const;
|
||||
|
||||
//==============================================================================
|
||||
/** Draws a line between two points.
|
||||
The line is 1 pixel wide and drawn with the current colour or brush.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue