Esp32-RBGridUI
Library for creating UIs for the RBController app
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
gridui::Widget Class Reference

#include <widget.h>

Inheritance diagram for gridui::Widget:
gridui::Arm gridui::Bar gridui::Button gridui::Camera gridui::Checkbox gridui::Circle gridui::Input gridui::Joystick gridui::Led gridui::Orientation gridui::Select gridui::Slider gridui::SpinEdit gridui::Switcher gridui::Text

Public Member Functions

 Widget ()
 
 Widget (const Widget &&o)
 
Widgetoperator= (const Widget &&o)
 
uint16_t uuid () const
 
void setWidgetX (float val)
 
float widgetX () const
 
void setWidgetY (float val)
 
float widgetY () const
 
void setWidgetW (float val)
 
float widgetW () const
 
void setWidgetH (float val)
 
float widgetH () const
 
void setWidgetTab (uint16_t tab)
 
uint16_t widgetTab () const
 
void setCss (const std::string &propertyName, const std::string &value)
 
std::string css (const std::string &propertyName) const
 

Protected Member Functions

 Widget (WidgetState *state)
 
 Widget (const Widget &)=delete
 
Widgetoperator= (const Widget &)=delete
 
const rbjson::Object & data () const
 

Protected Attributes

WidgetStatem_state
 

Detailed Description

Definition at line 134 of file widget.h.

Constructor & Destructor Documentation

◆ Widget() [1/4]

gridui::Widget::Widget ( )
inline

Definition at line 136 of file widget.h.

◆ Widget() [2/4]

gridui::Widget::Widget ( const Widget &&  o)
inline

Definition at line 140 of file widget.h.

◆ Widget() [3/4]

gridui::Widget::Widget ( WidgetState state)
inlineprotected

Definition at line 205 of file widget.h.

◆ Widget() [4/4]

gridui::Widget::Widget ( const Widget )
protecteddelete

Member Function Documentation

◆ css()

std::string gridui::Widget::css ( const std::string &  propertyName) const
inline

Definition at line 197 of file widget.h.

◆ data()

const rbjson::Object & gridui::Widget::data ( ) const
inlineprotected

Definition at line 212 of file widget.h.

◆ operator=() [1/2]

Widget & gridui::Widget::operator= ( const Widget &&  o)
inline

Definition at line 144 of file widget.h.

◆ operator=() [2/2]

Widget & gridui::Widget::operator= ( const Widget )
protecteddelete

◆ setCss()

void gridui::Widget::setCss ( const std::string &  propertyName,
const std::string &  value 
)
inline

Definition at line 193 of file widget.h.

◆ setWidgetH()

void gridui::Widget::setWidgetH ( float  val)
inline

Definition at line 177 of file widget.h.

◆ setWidgetTab()

void gridui::Widget::setWidgetTab ( uint16_t  tab)
inline

Definition at line 185 of file widget.h.

◆ setWidgetW()

void gridui::Widget::setWidgetW ( float  val)
inline

Definition at line 169 of file widget.h.

◆ setWidgetX()

void gridui::Widget::setWidgetX ( float  val)
inline

Definition at line 153 of file widget.h.

◆ setWidgetY()

void gridui::Widget::setWidgetY ( float  val)
inline

Definition at line 161 of file widget.h.

◆ uuid()

uint16_t gridui::Widget::uuid ( ) const
inline

Definition at line 149 of file widget.h.

◆ widgetH()

float gridui::Widget::widgetH ( ) const
inline

Definition at line 181 of file widget.h.

◆ widgetTab()

uint16_t gridui::Widget::widgetTab ( ) const
inline

Definition at line 189 of file widget.h.

◆ widgetW()

float gridui::Widget::widgetW ( ) const
inline

Definition at line 173 of file widget.h.

◆ widgetX()

float gridui::Widget::widgetX ( ) const
inline

Definition at line 157 of file widget.h.

◆ widgetY()

float gridui::Widget::widgetY ( ) const
inline

Definition at line 165 of file widget.h.

Field Documentation

◆ m_state

WidgetState* gridui::Widget::m_state
protected

Definition at line 214 of file widget.h.


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