1#ifndef __BINDCOLORPICKER_HPP
2#define __BINDCOLORPICKER_HPP
4#include "BindUtils.hpp"
75 copyAndOffset(out, &offset, &objID,
sizeof(objID));
76 copyAndOffset(out, &offset, &
x,
sizeof(
x));
77 copyAndOffset(out, &offset, &
y,
sizeof(
y));
78 copyAndOffset(out, &offset, &tag,
sizeof(tag));
79 copyAndOffset(out, &offset, &
cmdId,
sizeof(
cmdId));
81 copyAndOffset(out, &offset, &
red,
sizeof(
red));
82 copyAndOffset(out, &offset, &
green,
sizeof(
green));
83 copyAndOffset(out, &offset, &
blue,
sizeof(
blue));
88 uint8_t objID = BIND_ID_COLOR_PICKER;
BindColorPicker Class.
Definition BindColorPicker.hpp:53
int16_t dimSize
The dimensions (size) of the color picker.
Definition BindColorPicker.hpp:59
uint8_t cmdId
Command identifier to add or refresh the color picker. See the notes for possible cmdId values.
Definition BindColorPicker.hpp:58
uint8_t blue
The initial value for the blue component of the selected color (0-255).
Definition BindColorPicker.hpp:62
uint8_t green
The initial value for the green component of the selected color (0-255).
Definition BindColorPicker.hpp:61
uint16_t getBytes(uint8_t *out) override
Serialize the color picker object into bytes.
Definition BindColorPicker.hpp:72
int16_t y
The y-coordinate position of the color picker on the screen.
Definition BindColorPicker.hpp:57
uint8_t red
The initial value for the red component of the selected color (0-255).
Definition BindColorPicker.hpp:60
int16_t x
The x-coordinate position of the color picker on the screen.
Definition BindColorPicker.hpp:56
Definition BindView.hpp:22