Adds a closed sub-path rectangle of the given size to the current path at position (x, y).
- Parameters
-
ctx | The vkvg context pointer. |
x | The x coordinate of the top left corner of the rectangle to emit. |
y | The y coordinate of the top left corner of the rectangle to emit. |
w | The width in pixel of the rectangle to draw. |
h | The height in pixel of the rectangle to draw. |
rx | The horizontal radius of the corners. |
ry | The vertical radius of the corners. |
- Returns
- VKVG_STATUS_SUCCESS or VKVG_STATUS_INVALID_RECT if width or height is equal to 0.