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