8#include <mousetrap/widget.hpp>
9#include <mousetrap/signal_component.hpp>
12 #include "../../docs/doxygen.inl"
21 using SwitchInternal = GtkSwitch;
22 DEFINE_INTERNAL_MAPPING(Switch);
30 class Switch :
public detail::notify_if_gtk_uninitialized,
32 HAS_SIGNAL(Switch, switched),
33 HAS_SIGNAL(Switch, realize),
34 HAS_SIGNAL(Switch, unrealize),
35 HAS_SIGNAL(Switch, destroy),
36 HAS_SIGNAL(Switch, hide),
37 HAS_SIGNAL(Switch, show),
38 HAS_SIGNAL(Switch, map),
39 HAS_SIGNAL(Switch, unmap)
46 Switch(detail::SwitchInternal*);
63 detail::SwitchInternal* _internal =
nullptr;
switch, can be click dragged or clicked to change a binary state
Definition: switch.hpp:40
void set_is_active(bool)
set whether the switch is in the "on" position
Definition: switch.cpp:53
~Switch()
destructor
Definition: switch.cpp:38
Switch()
construct
Definition: switch.cpp:9
bool get_is_active() const
get whether the switch is in the "on" position
Definition: switch.cpp:48
NativeObject get_internal() const override
expose internal
Definition: switch.cpp:43