5#ifndef ROUNDEDRECTANGLE_H
6#define ROUNDEDRECTANGLE_H
58 unsigned int cornerPointCount = 8);
129 unsigned int m_cornerPointCount;
const sf::Vector2f & getSize() const
Return the current size of the rectangle.
void setSize(const sf::Vector2f &size)
Set the width and height of the rectangle.
virtual sf::Vector2f getPoint(std::size_t index) const override
Return the position of a single vertex.
float getRadius() const
Return the current corner arc radius.
RoundedRectangle(const sf::Vector2f &size=sf::Vector2f(0, 0), float radius=0.f, unsigned int cornerPointCount=8)
Construct a rounded rectangle.
void setRadius(float radius)
Set the corner arc radius.
unsigned int getCornerPointCount() const
Return the current per-corner vertex count.
virtual std::size_t getPointCount() const override
Return the total number of shape vertices.
void setCornerPointCount(unsigned int count)
Set the number of vertices per corner arc.
Vector2< float > Vector2f