Scenic v0.9.0 Scenic.Primitive.RoundedRectangle View Source
Draw a rectangle with rounded corners on the screen.
Data
{width, height, radius}
The data for a line is a tuple containing three numbers.
width
- width of the rectangleheight
- height of the rectangleradius
- radius of the corners
Styles
This primitive recognizes the following styles
hidden
- show or hide the primitivefill
- fill in the area of the primitivestroke
- stroke the outline of the primitive. In this case, only the curvy part.
Usage
You should add/modify primitives via the helper functions in
Scenic.Primitives
Link to this section Summary
Functions
Returns a the centroid of the rectangle. This is used as the default pin when applying rotate or scale transforms
Returns a list of styles recognized by this primitive
Link to this section Functions
Returns a the centroid of the rectangle. This is used as the default pin when applying rotate or scale transforms.
Returns a list of styles recognized by this primitive.