Esp32-RBGridUI
Library for creating UIs for the RBController app
Loading...
Searching...
No Matches
builder
led.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "../widgets/led.h"
4
#include "
widget.h
"
5
6
namespace
gridui
{
7
namespace
builder {
8
11
class
Led
:
public
Widget
,
public
BuilderMixin
<Led, gridui::Led> {
12
static
const
char
* name() {
return
"Led"
; }
13
14
friend
class
gridui::_GridUi
;
15
using
Widget::Widget
;
16
17
public
:
18
Led
&
color
(
const
std::string&
color
) {
19
extra
().set(
"color"
,
color
);
20
return
*
this
;
21
}
22
23
Led
&
on
(
bool
on
) {
24
extra
().set(
"on"
,
new
rbjson::Bool(
on
));
25
return
*
this
;
26
}
27
};
28
29
};
30
};
gridui::Widget::Widget
Widget()
Definition
widget.h:180
gridui::_GridUi
Definition
gridui.h:42
gridui::builder::BuilderMixin
Definition
widget.h:33
gridui::builder::Led
Definition
led.h:11
gridui::builder::Led::on
Led & on(bool on)
Definition
led.h:23
gridui::builder::Led::color
Led & color(const std::string &color)
Definition
led.h:18
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