FR: fillRoundedRectangle( Rectangle<int> )


Why is there no g.fillRoundedRectangle(Rectangle<int> rectangle, float cornerSize)

We’d be able to g.fillRoundedRectangle( getLocalBounds(), 5 ); if there were…

@jules @ed95 @fabian

g.fillRoundedRectangle (getLocalBounds().toFloat(), 5.0f);


ah ha!!! brilliant! :thumbsup:

can we get this added to the API?

void Graphics::fillRoundedRectangle (Rectangle<int> r, const float cornerSize) const
    fillRoundedRectangle( r.toFloat(), cornerSize );


Don’t think it justifies bloating the class for that. Eventually most graphics and positioning code will change to use floats, so we generally avoid adding anything that encourages use of ints.