33 #include "eng3d/ui/widget.hpp"
47 void set_text(
const std::string& _text)
override;
49 static void on_click_default(
Widget& w);
50 void init_checkbox(
int size);
53 std::function<void(
Widget&)> outside_on_click =
nullptr;
54 std::shared_ptr<Eng3D::Texture> checked_texture;
55 std::shared_ptr<Eng3D::Texture> unchecked_texture;
void set_value(bool checked)
void set_text(const std::string &_text) override
Generates text for the widget and overrides the current text texture.
Checkbox(Widget *parent=nullptr)
virtual ~Checkbox() override
void set_on_click(std::function< void(Widget &)> on_click) override
A basic widget without any presets.