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

#include <joystick.h>

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

Public Member Functions

Joystickcolor (const std::string &color)
 
Joystickkeys (const std::string &keys)
 
Joysticktext (const std::string &text)
 
Joystickkeys (char forward, char left, char backwards, char right, char click=0)
 
JoystickonClick (callback_t cb)
 
JoystickonPositionChanged (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< Joystick, gridui::Joystick >
Joystickcss (const std::string &key, const std::string &value)
 
gridui::Joystick finish ()
 

Friends

class gridui::_GridUi
 

Additional Inherited Members

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

Member Function Documentation

◆ color()

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

Definition at line 18 of file joystick.h.

◆ keys() [1/2]

Joystick & gridui::builder::Joystick::keys ( char  forward,
char  left,
char  backwards,
char  right,
char  click = 0 
)
inline

Definition at line 33 of file joystick.h.

◆ keys() [2/2]

Joystick & gridui::builder::Joystick::keys ( const std::string &  keys)
inline

Definition at line 23 of file joystick.h.

◆ text()

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

Definition at line 28 of file joystick.h.

Friends And Related Symbol Documentation

◆ gridui::_GridUi

friend class gridui::_GridUi
friend

Definition at line 14 of file joystick.h.


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