Esp32-RBGridUI
Library for creating UIs for the RBController app
Loading...
Searching...
No Matches
orientation.h
Go to the documentation of this file.
1#pragma once
2
3#include "../widgets/orientation.h"
4#include "widget.h"
5
6namespace gridui {
7namespace builder {
8
11class Orientation : public Widget, public BuilderMixin<Orientation, gridui::Orientation> {
12 static const char* name() { return "Orientation"; }
13
14 friend class gridui::_GridUi;
15 using Widget::Widget;
16
17public:
18 Orientation& color(const std::string& color) {
19 extra().set("color", color);
20 return *this;
21 }
22
26 addCallback("pos", cb);
27 return *this;
28 }
29};
30
31};
32};
void addCallback(const std::string &name, callback_t cb)
Definition widget.h:52
std::function< void(gridui::Orientation &)> callback_t
Definition widget.h:39
Orientation & color(const std::string &color)
Definition orientation.h:18
rbjson::Object & extra()
Definition widget.cpp:20
Orientation & onPositionChanged(callback_t cb)
Definition orientation.h:25
Definition arm.h:8