mc_rtc::gui::details::ButtonImpl< Callback > Struct Template Reference

#include <mc_rtc/gui/Button.h>

Inheritance diagram for mc_rtc::gui::details::ButtonImpl< Callback >:
Collaboration diagram for mc_rtc::gui::details::ButtonImpl< Callback >:

Public Member Functions

template<typename... Args>
 ButtonImpl (const std::string &name, Callback cb, Args &&... args)
 
 ButtonImpl ()
 
- Public Member Functions inherited from mc_rtc::gui::VoidCallbackElement< Element, Callback >
bool handleRequest (const mc_rtc::Configuration &)
 
 VoidCallbackElement (const std::string &name, Callback cb, Args &&... args)
 
 VoidCallbackElement ()
 
- Public Member Functions inherited from mc_rtc::gui::CallbackElement< Element, Callback >
bool handleRequest (const mc_rtc::Configuration &data)
 
 CallbackElement (const std::string &name, Callback cb, Args &&... args)
 
 CallbackElement ()
 
- Public Member Functions inherited from mc_rtc::gui::Element
const std::string & name () const
 
int id () const
 
void id (int idIn)
 
void write (mc_rtc::MessagePackBuilder &)
 
bool handleRequest (const mc_rtc::Configuration &)
 
 Element ()
 

Static Public Attributes

static constexpr auto type = Elements::Button
 

Additional Inherited Members

- Static Public Member Functions inherited from mc_rtc::gui::Element
static constexpr size_t write_size ()
 
- Protected Member Functions inherited from mc_rtc::gui::Element
 Element (const std::string &name)
 
- Protected Attributes inherited from mc_rtc::gui::CallbackElement< Element, Callback >
Callback cb_
 
- Protected Attributes inherited from mc_rtc::gui::Element
std::string name_
 
int id_
 

Detailed Description

template<typename Callback>
struct mc_rtc::gui::details::ButtonImpl< Callback >

Button should provide a clickable button

When the button is clicked, Callback() is called

Template Parameters
CallbackThe callback that will be called when clicking the button

Constructor & Destructor Documentation

◆ ButtonImpl() [1/2]

template<typename Callback >
template<typename... Args>
mc_rtc::gui::details::ButtonImpl< Callback >::ButtonImpl ( const std::string &  name,
Callback  cb,
Args &&...  args 
)
inline

◆ ButtonImpl() [2/2]

template<typename Callback >
mc_rtc::gui::details::ButtonImpl< Callback >::ButtonImpl ( )
inline

Invalid element

Member Data Documentation

◆ type

template<typename Callback >
constexpr auto mc_rtc::gui::details::ButtonImpl< Callback >::type = Elements::Button
staticconstexpr

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