mc_rtc::gui::details::CheckboxImpl< GetT, Callback > Struct Template Reference

#include <mc_rtc/gui/Checkbox.h>

Inheritance diagram for mc_rtc::gui::details::CheckboxImpl< GetT, Callback >:
Collaboration diagram for mc_rtc::gui::details::CheckboxImpl< GetT, Callback >:

Public Member Functions

 CheckboxImpl (const std::string &name, GetT get_fn, Callback cb)
 
 CheckboxImpl ()
 
- Public Member Functions inherited from mc_rtc::gui::VoidCallbackElement< DataElement< GetT >, 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< ElementT, Callback >
bool handleRequest (const mc_rtc::Configuration &data)
 
template<typename... Args>
 CallbackElement (const std::string &name, Callback cb, Args &&... args)
 
 CallbackElement ()
 

Static Public Attributes

static constexpr auto type = Elements::Checkbox
 

Additional Inherited Members

- Protected Attributes inherited from mc_rtc::gui::CallbackElement< ElementT, Callback >
Callback cb_
 

Detailed Description

template<typename GetT, typename Callback>
struct mc_rtc::gui::details::CheckboxImpl< GetT, Callback >

Checkbox display a toggable checkbox

Template Parameters
GetTShould return a boolean providing the state of the button
CallbackWhen the checkbox is called, this is called

Constructor & Destructor Documentation

◆ CheckboxImpl() [1/2]

template<typename GetT , typename Callback >
mc_rtc::gui::details::CheckboxImpl< GetT, Callback >::CheckboxImpl ( const std::string &  name,
GetT  get_fn,
Callback  cb 
)
inline

◆ CheckboxImpl() [2/2]

template<typename GetT , typename Callback >
mc_rtc::gui::details::CheckboxImpl< GetT, Callback >::CheckboxImpl ( )
inline

Invalid element

Member Data Documentation

◆ type

template<typename GetT , typename Callback >
constexpr auto mc_rtc::gui::details::CheckboxImpl< GetT, Callback >::type = Elements::Checkbox
staticconstexpr

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