#include <mc_rtc/gui/elements.h>
Element is the common class for every element's type available in the GUI. Since we use static polymorphism in the StateBuilder we don't need to make any functions virtual
◆ Element() [1/2]
mc_rtc::gui::Element::Element |
( |
| ) |
|
|
inline |
Invalid element, used for Python bindings
◆ Element() [2/2]
mc_rtc::gui::Element::Element |
( |
const std::string & |
name | ) |
|
|
protected |
◆ handleRequest()
Take care of answering request from the client
◆ id() [1/2]
int mc_rtc::gui::Element::id |
( |
| ) |
const |
|
inline |
Access the stack id of an element (also referred to as SID)
Elements that should be displayed on the same line share the same id
◆ id() [2/2]
void mc_rtc::gui::Element::id |
( |
int |
idIn | ) |
|
|
inline |
Set the stack id of an element
◆ name()
const std::string& mc_rtc::gui::Element::name |
( |
| ) |
const |
|
inline |
◆ write()
Write the widget to a MessagePackBuilder
Writes nothing, the default data is written by GUIState since it knows if the sid is relevant.
◆ write_size()
static constexpr size_t mc_rtc::gui::Element::write_size |
( |
| ) |
|
|
inlinestaticconstexpr |
Returns the size of the array representing the widget in the MessagePack
By default, it includes the widget name, type and SID.
◆ id_
int mc_rtc::gui::Element::id_ |
|
protected |
◆ name_
std::string mc_rtc::gui::Element::name_ |
|
protected |
The documentation for this struct was generated from the following file: