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

#include <checkbox.h>

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

Public Member Functions

CheckboxfontSize (float fontSize)
 
Checkboxchecked (bool checked)
 
Checkboxcolor (const std::string &color)
 
Checkboxtext (const std::string &text)
 
CheckboxonChanged (callback_t cb)
 
- Public Member Functions inherited from gridui::builder::Widget
 Widget (Widget &&o) noexcept
 
virtual ~Widget ()
 
- Public Member Functions inherited from gridui::builder::BuilderMixin< Checkbox, gridui::Checkbox >
Checkboxcss (const std::string &key, const std::string &value)
 
gridui::Checkbox finish ()
 

Friends

class gridui::_GridUi
 

Additional Inherited Members

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

Detailed Description

Definition at line 11 of file checkbox.h.

Member Function Documentation

◆ checked()

Checkbox & gridui::builder::Checkbox::checked ( bool  checked)
inline

Definition at line 23 of file checkbox.h.

◆ color()

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

Definition at line 28 of file checkbox.h.

◆ fontSize()

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

Definition at line 18 of file checkbox.h.

◆ text()

Checkbox & gridui::builder::Checkbox::text ( const std::string &  text)
inline

Definition at line 33 of file checkbox.h.

Friends And Related Symbol Documentation

◆ gridui::_GridUi

friend class gridui::_GridUi
friend

Definition at line 14 of file checkbox.h.


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