Skip to main content

Module rrect

Module rrect 

Expand description

Describes a rounded rectangle with a bounds and a pair of radii for each corner. The bounds and radii can be set so that RRect describes: a rectangle with sharp corners; a circle; an oval; or a rectangle with one or more rounded corners.

RRect allows implementing CSS properties that describe rounded corners. RRect may have up to eight different radii, one for each axis on each of its four corners.

RRect may modify the provided parameters when initializing bounds and radii. If either axis radii is zero or less: radii are stored as zero; corner is square. If corner curves overlap, radii are proportionally reduced to fit within bounds.

Structs§

RRect

Enums§

Corner
Type