JM9 XRCU Board 0.1.3a
Libraries API Reference
Loading...
Searching...
No Matches
RadioButton.h
1#ifndef DSGC_RADIOBUTTON_H
2#define DSGC_RADIOBUTTON_H
3
4#include "Component.h"
5
6namespace dsgc {
7 class RadioButton : public Component {
8 private:
9 bool checked;
10 const unsigned int radius;
11 public:
12 RadioButton(Adafruit_GFX &graphics, unsigned int x, unsigned int y, unsigned int diameter = 7);
13
14 virtual void paint() override;
15
16 void setChecked(bool checked);
17 bool isChecked();
18 };
19}
20
21#endif // #ifndef DSGC_RADIOBUTTON_H
Definition Adafruit_GFX.h:18
virtual void paint() override
Paints this component.
Definition RadioButton.cpp:11