10 const unsigned int length;
12 void paintBox(
unsigned int cornerRadius);
13 void paintTick(
unsigned int margin);
14 static const unsigned int MIN_LENGTH;
15 static const unsigned int MIN_TICK_MARGIN;
16 static const unsigned int DEFAULT_LENGTH;
35 virtual void paint()
override;
Definition Adafruit_GFX.h:18
void setChecked(bool checked)
Sets whether the checkbox is checked.
Definition Checkbox.cpp:69
virtual void paint() override
Paints this component.
Definition Checkbox.cpp:62
Color getTickColor()
Gets the color of the tick stroke.
Definition Checkbox.cpp:81
bool isChecked()
Gets whether the checkbox is checked.
Definition Checkbox.cpp:77
void setTickColor(Color color)
Sets the color of the tick stroke.
Definition Checkbox.cpp:85
Checkbox(Adafruit_GFX &graphics, unsigned int x, unsigned int y)
Creates a checkbox with default length.
Definition Checkbox.cpp:7
The common interface for colors used by DSGC.
Definition Color.h:21