mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an alternative version of Path::addPieSegment()
This commit is contained in:
parent
5775d62810
commit
cd48446e89
2 changed files with 38 additions and 1 deletions
|
|
@ -656,6 +656,20 @@ void Path::addPieSegment (const float x, const float y,
|
|||
closeSubPath();
|
||||
}
|
||||
|
||||
void Path::addPieSegment (Rectangle<int> segmentBounds,
|
||||
const float fromRadians,
|
||||
const float toRadians,
|
||||
const float innerCircleProportionalSize)
|
||||
{
|
||||
addPieSegment (segmentBounds.getX(),
|
||||
segmentBounds.getY(),
|
||||
segmentBounds.getWidth(),
|
||||
segmentBounds.getHeight(),
|
||||
fromRadians,
|
||||
toRadians,
|
||||
innerCircleProportionalSize);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void Path::addLineSegment (const Line<float>& line, float lineThickness)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue