Represents a Rectangle Object for BindCanvas. More...
#include <BindRectangle.hpp>
Public Member Functions | |
uint16_t | getBytes (uint8_t *out) override |
Get the serialized bytes of the BindRectangle object. | |
Public Attributes | |
int16_t | x = 0 |
X-coordinate position of the rectangle. | |
int16_t | y = 0 |
Y-coordinate position of the rectangle. | |
uint8_t | cmdId = 0 |
Command identifier for the rectangle. See the notes for possible cmdId values. | |
int16_t | width = 200 |
Width of the rectangle. | |
int16_t | height = 100 |
Height of the rectangle. | |
int32_t | fillColor = WHITE |
Fill color of the rectangle. | |
int32_t | borderColor = DKGRAY |
Border (Stroke) color of the rectangle. | |
int16_t | borderWidth = 2 |
Border (Stroke) width of the rectangle. | |
int16_t | cornersRadius = 5 |
Radius of the rectangle's rounded corners. | |
![]() | |
int16_t | tag |
Represents a Rectangle Object for BindCanvas.
The BindRectangle
class defines a rectangular object that can be displayed and manipulated on a BindCanvas screen. This object can be used for various purposes, such as drawing shapes, creating backgrounds, or framing other elements. It allows you to control its dimensions, position, fill color, border color, border width, and corner radius.
To use a BindRectangle
object, you can create an instance and configure its properties, then add it to the BindCanvas using the sync functions.
|
inlineoverridevirtual |
Get the serialized bytes of the BindRectangle
object.
This function serializes the BindRectangle
object into a byte array, which can be sent to BindCanvas for rendering and interaction.
out | Pointer to the output buffer where the serialized data will be stored. |
Reimplemented from BindView.