UIButton implements a button interface on the web UI.
More...
#include <sensesp/ui/ui_button.h>
UIButton implements a button interface on the web UI.
Each UIButton object creates a button in the "Control" tab of the web UI. When the button is clicked, the object's observers are notified.
Definition at line 18 of file ui_button.h.
◆ UIButton()
| sensesp::UIButton::UIButton |
( |
String |
title, |
|
|
String |
name, |
|
|
bool |
must_confirm |
|
) |
| |
|
inline |
◆ add()
| static UIButton * sensesp::UIButton::add |
( |
String |
name, |
|
|
String |
title, |
|
|
bool |
must_confirm = true |
|
) |
| |
|
inlinestatic |
◆ clear_registry()
| void sensesp::UIButton::clear_registry |
( |
| ) |
|
|
static |
Empty the button registry.
Releases the registry's shared_ptr references. Intended for clean app restart and test isolation; not for normal runtime use.
Like ConfigItemBase and unlike the raw-pointer registries, this registry owns its entries via shared_ptr, so there is no unregister-on-destruction: clearing the map releases the objects.
Definition at line 7 of file ui_button.cpp.
◆ get_must_confirm()
| const bool sensesp::UIButton::get_must_confirm |
( |
| ) |
|
|
inline |
◆ get_name()
| const String sensesp::UIButton::get_name |
( |
| ) |
|
|
inline |
◆ get_title()
| const String sensesp::UIButton::get_title |
( |
| ) |
|
|
inline |
◆ get_ui_buttons()
| static const std::map< String, std::shared_ptr< UIButton > > & sensesp::UIButton::get_ui_buttons |
( |
| ) |
|
|
inlinestatic |
◆ must_confirm_
| bool sensesp::UIButton::must_confirm_ |
|
protected |
◆ name_
| String sensesp::UIButton::name_ |
|
protected |
◆ title_
| String sensesp::UIButton::title_ |
|
protected |
◆ ui_buttons_
| std::map< String, std::shared_ptr< UIButton > > sensesp::UIButton::ui_buttons_ |
|
staticprotected |
The documentation for this class was generated from the following files: