13#if defined(LECUI_EXPORTS)
16#include <liblec/lecui/widgets/widget.h>
26 std::string _text_off =
"Off";
34 _cursor = cursor_type::hand;
35 _rect.size({ 200.f, 20.f });
43 std::function<void(
bool on)>
toggle =
nullptr;
49 return _toggle_events;
68 std::string&
text()
override;
240#if defined(lecui_helper)
242#define get_toggle(path) liblec::lecui::widgets::toggle::get(*this, path)
RGBA color on a standard 0 to 255 scale. For the alpha channel 0 is transparent and 255 is opaque.
Definition: lecui.h:583
Page container.
Definition: page.h:32
Rectangle class.
Definition: lecui.h:158
Resize parameters.
Definition: lecui.h:363
Top level namespace for the liblec libraries.
Definition: appearance.h:19