Esp32-RBGridUI
Library for creating UIs for the RBController app
Loading...
Searching...
No Matches
circle.h
Go to the documentation of this file.
1#pragma once
2
3#include "../widgets/circle.h"
4#include "widget.h"
5
6namespace gridui {
7namespace builder {
8
11class Circle : public Widget, public BuilderMixin<Circle, gridui::Circle> {
12 static const char* name() { return "Circle"; }
13
14 friend class gridui::_GridUi;
15 using Widget::Widget;
16
17public:
18 Circle& color(const std::string& color) {
19 extra().set("color", color);
20 return *this;
21 }
22
24 extra().set("fontSize", fontSize);
25 return *this;
26 }
27
28 Circle& min(float min) {
29 extra().set("min", min);
30 return *this;
31 }
32
33 Circle& max(float max) {
34 extra().set("max", max);
35 return *this;
36 }
37
39 extra().set("lineWidth", lineWidth);
40 return *this;
41 }
42
44 extra().set("valueStart", valueStart);
45 return *this;
46 }
47
48 Circle& value(float value) {
49 extra().set("value", value);
50 return *this;
51 }
52
54 extra().set("showValue", new rbjson::Bool(showValue));
55 return *this;
56 }
57};
58
59};
60};
Circle & color(const std::string &color)
Definition circle.h:18
Circle & min(float min)
Definition circle.h:28
Circle & showValue(bool showValue)
Definition circle.h:53
Circle & value(float value)
Definition circle.h:48
Circle & fontSize(float fontSize)
Definition circle.h:23
Circle & max(float max)
Definition circle.h:33
Circle & valueStart(float valueStart)
Definition circle.h:43
Circle & lineWidth(float lineWidth)
Definition circle.h:38
rbjson::Object & extra()
Definition widget.cpp:16
Definition arm.h:8