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

#include <button.h>

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

Public Member Functions

Buttontext (const char *text)
 
Buttontext (const std::string &text)
 
ButtonfontSize (float fontSize)
 
Buttoncolor (const std::string &color)
 
Buttonbackground (const std::string &background)
 
Buttonalign (const std::string &align)
 
Buttonvalign (const std::string &valign)
 
Buttondisabled (bool disabled)
 
ButtononPress (callback_t cb)
 
ButtononRelease (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< Button, gridui::Button >
Buttoncss (const std::string &key, const std::string &value)
 
gridui::Button finish ()
 

Friends

class gridui::_GridUi
 

Additional Inherited Members

- Public Types inherited from gridui::builder::BuilderMixin< Button, gridui::Button >
typedef std::function< void(gridui::Button &)> 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< Button, gridui::Button >
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 button.h.

Member Function Documentation

◆ align()

Button & gridui::builder::Button::align ( const std::string &  align)
inline

Definition at line 43 of file button.h.

◆ background()

Button & gridui::builder::Button::background ( const std::string &  background)
inline

Definition at line 38 of file button.h.

◆ color()

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

Definition at line 33 of file button.h.

◆ disabled()

Button & gridui::builder::Button::disabled ( bool  disabled)
inline

Definition at line 53 of file button.h.

◆ fontSize()

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

Definition at line 28 of file button.h.

◆ text() [1/2]

Button & gridui::builder::Button::text ( const char *  text)
inline

Definition at line 18 of file button.h.

◆ text() [2/2]

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

Definition at line 23 of file button.h.

◆ valign()

Button & gridui::builder::Button::valign ( const std::string &  valign)
inline

Definition at line 48 of file button.h.

Friends And Related Symbol Documentation

◆ gridui::_GridUi

friend class gridui::_GridUi
friend

Definition at line 14 of file button.h.


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