template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
class constixel::shapes::round_rect< T, W, H, GRAYSCALE, USE_SPAN >
Fluent API for drawing rounded rectangles.
Provides a chainable interface for drawing filled and stroked rounded rectangles.
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
Construct a rounded rectangle shape.
- Parameters
-
image | Target image to draw on |
x_ | X coordinate of top-left corner |
y_ | Y coordinate of top-left corner |
w_ | Width of rectangle |
h_ | Height of rectangle |
radius_ | Corner radius |
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
Fill the rounded rectangle with a solid color.
- Parameters
-
- Returns
- Reference to this rounded rectangle for chaining
template<template< size_t, size_t, bool, bool > class T, size_t W, size_t H, bool GRAYSCALE, bool USE_SPAN>
Draw the rounded rectangle outline.
- Parameters
-
col | Color value |
stroke_width | Width of the stroke (default: 1) |
- Returns
- Reference to this rounded rectangle for chaining