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

#include <widget.h>

Public Member Functions

 WidgetState (uint16_t uuid, float x, float y, float w, float h, uint16_t tab)
 
uint16_t uuid () const
 
const rbjson::Object & data () const
 
bool set (const std::string &key, rbjson::Value *value)
 
bool setInnerObjectProp (const std::string &objectName, const std::string &propertyName, rbjson::Value *value)
 
void markChanged (const std::string &key)
 
bool hasRegisteredCallbacks () const
 
WidgetPos pos () const
 
void setPos (const WidgetPos &p)
 

Friends

class gridui::builder::Widget
 
class gridui::_GridUi
 
template<typename Self , typename Finished >
class builder::BuilderMixin
 

Detailed Description

Definition at line 99 of file widget.h.

Constructor & Destructor Documentation

◆ WidgetState()

gridui::WidgetState::WidgetState ( uint16_t  uuid,
float  x,
float  y,
float  w,
float  h,
uint16_t  tab 
)

Definition at line 13 of file widget.cpp.

Member Function Documentation

◆ data()

const rbjson::Object & gridui::WidgetState::data ( ) const
inline

Definition at line 110 of file widget.h.

◆ hasRegisteredCallbacks()

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

Definition at line 118 of file widget.h.

◆ markChanged()

void gridui::WidgetState::markChanged ( const std::string &  key)

Definition at line 122 of file widget.cpp.

◆ pos()

WidgetPos gridui::WidgetState::pos ( ) const
inline

Definition at line 122 of file widget.h.

◆ set()

bool gridui::WidgetState::set ( const std::string &  key,
rbjson::Value *  value 
)

Definition at line 27 of file widget.cpp.

◆ setInnerObjectProp()

bool gridui::WidgetState::setInnerObjectProp ( const std::string &  objectName,
const std::string &  propertyName,
rbjson::Value *  value 
)

Definition at line 44 of file widget.cpp.

◆ setPos()

void gridui::WidgetState::setPos ( const WidgetPos p)
inline

Definition at line 126 of file widget.h.

◆ uuid()

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

Definition at line 109 of file widget.h.

Friends And Related Symbol Documentation

◆ builder::BuilderMixin

template<typename Self , typename Finished >
friend class builder::BuilderMixin
friend

Definition at line 104 of file widget.h.

◆ gridui::_GridUi

friend class gridui::_GridUi
friend

Definition at line 101 of file widget.h.

◆ gridui::builder::Widget

friend class gridui::builder::Widget
friend

Definition at line 100 of file widget.h.


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