1#ifndef __BINDRECTANGLE_HPP
2#define __BINDRECTANGLE_HPP
4#include "BindUtils.hpp"
54 copyAndOffset(out, &offset, &objID,
sizeof(objID));
55 copyAndOffset(out, &offset, &
x,
sizeof(
x));
56 copyAndOffset(out, &offset, &
y,
sizeof(
y));
57 copyAndOffset(out, &offset, &tag,
sizeof(tag));
58 copyAndOffset(out, &offset, &
cmdId,
sizeof(
cmdId));
59 copyAndOffset(out, &offset, &
width,
sizeof(
width));
69 uint8_t objID = BIND_ID_RECTANGLE;
71 static int16_t tagIndex;
Represents a Rectangle Object for BindCanvas.
Definition BindRectangle.hpp:29
int16_t cornersRadius
Radius of the rectangle's rounded corners.
Definition BindRectangle.hpp:40
int16_t y
Y-coordinate position of the rectangle.
Definition BindRectangle.hpp:33
uint16_t getBytes(uint8_t *out) override
Get the serialized bytes of the BindRectangle object.
Definition BindRectangle.hpp:51
int16_t width
Width of the rectangle.
Definition BindRectangle.hpp:35
int16_t x
X-coordinate position of the rectangle.
Definition BindRectangle.hpp:32
int16_t height
Height of the rectangle.
Definition BindRectangle.hpp:36
uint8_t cmdId
Command identifier for the rectangle. See the notes for possible cmdId values.
Definition BindRectangle.hpp:34
int16_t borderWidth
Border (Stroke) width of the rectangle.
Definition BindRectangle.hpp:39
int32_t fillColor
Fill color of the rectangle.
Definition BindRectangle.hpp:37
int32_t borderColor
Border (Stroke) color of the rectangle.
Definition BindRectangle.hpp:38
Definition BindView.hpp:22