Esp32-RBGridUI
Library for creating UIs for the RBController app
Loading...
Searching...
No Matches
Public Member Functions | Friends
gridui::builder::Switcher Class Reference

#include <switcher.h>

Inheritance diagram for gridui::builder::Switcher:
gridui::builder::Widget gridui::builder::BuilderMixin< Switcher, gridui::Switcher >

Public Member Functions

SwitcherfontSize (float fontSize)
 
Switchercolor (const std::string &color)
 
Switchermin (int min)
 
Switchermax (int max)
 
SwitcheronChanged (callback_t cb)
 
- Public Member Functions inherited from gridui::builder::Widget
 Widget (Widget &&o) noexcept
 
const char * widgetTypeName () const
 
- Public Member Functions inherited from gridui::builder::BuilderMixin< Switcher, gridui::Switcher >
Switchercss (const std::string &key, const std::string &value)
 
gridui::Switcher finish ()
 

Friends

class gridui::_GridUi
 

Additional Inherited Members

- Public Types inherited from gridui::builder::BuilderMixin< Switcher, gridui::Switcher >
typedef std::function< void(gridui::Switcher &)> callback_t
 
- Protected Member Functions inherited from gridui::builder::Widget
 Widget (const char *type, WidgetState &state)
 
void serialize (std::ostream &ss)
 
rbjson::Object & extra ()
 
rbjson::Object & style ()
 
- Protected Member Functions inherited from gridui::builder::BuilderMixin< Switcher, gridui::Switcher >
void addCallback (const std::string &name, const callback_t &cb)
 
- Protected Attributes inherited from gridui::builder::Widget
WidgetStatem_state
 

Detailed Description

Definition at line 11 of file switcher.h.

Member Function Documentation

◆ color()

Switcher & gridui::builder::Switcher::color ( const std::string &  color)
inline

Definition at line 23 of file switcher.h.

◆ fontSize()

Switcher & gridui::builder::Switcher::fontSize ( float  fontSize)
inline

Definition at line 18 of file switcher.h.

◆ max()

Switcher & gridui::builder::Switcher::max ( int  max)
inline

Definition at line 33 of file switcher.h.

◆ min()

Switcher & gridui::builder::Switcher::min ( int  min)
inline

Definition at line 28 of file switcher.h.

Friends And Related Symbol Documentation

◆ gridui::_GridUi

friend class gridui::_GridUi
friend

Definition at line 14 of file switcher.h.


The documentation for this class was generated from the following file: