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)
 
 Widget (const Widget &o)
 
Widgetoperator= (const Widget &&o)
 
bool hasRegisteredCallbacks () const
 
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)
 
Widgetoperator= (const Widget &)=delete
 
const rbjson::Object & data () const
 

Protected Attributes

WidgetStatem_state
 

Detailed Description

Definition at line 178 of file widget.h.

Constructor & Destructor Documentation

◆ Widget() [1/4]

gridui::Widget::Widget ( )
inline

Definition at line 180 of file widget.h.

◆ Widget() [2/4]

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

Definition at line 184 of file widget.h.

◆ Widget() [3/4]

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

Definition at line 188 of file widget.h.

◆ Widget() [4/4]

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

Definition at line 257 of file widget.h.

Member Function Documentation

◆ css()

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

Definition at line 249 of file widget.h.

◆ data()

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

Definition at line 263 of file widget.h.

◆ hasRegisteredCallbacks()

bool gridui::Widget::hasRegisteredCallbacks ( ) const
inline

Definition at line 197 of file widget.h.

◆ operator=() [1/2]

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

Definition at line 192 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 245 of file widget.h.

◆ setWidgetH()

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

Definition at line 229 of file widget.h.

◆ setWidgetTab()

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

Definition at line 237 of file widget.h.

◆ setWidgetW()

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

Definition at line 221 of file widget.h.

◆ setWidgetX()

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

Definition at line 205 of file widget.h.

◆ setWidgetY()

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

Definition at line 213 of file widget.h.

◆ uuid()

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

Definition at line 201 of file widget.h.

◆ widgetH()

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

Definition at line 233 of file widget.h.

◆ widgetTab()

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

Definition at line 241 of file widget.h.

◆ widgetW()

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

Definition at line 225 of file widget.h.

◆ widgetX()

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

Definition at line 209 of file widget.h.

◆ widgetY()

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

Definition at line 217 of file widget.h.

Field Documentation

◆ m_state

WidgetState* gridui::Widget::m_state
protected

Definition at line 265 of file widget.h.


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