added FullCheckBox

This commit is contained in:
MihailRis
2024-01-11 04:08:36 +03:00
parent b2b961552b
commit 290fec379e
4 changed files with 69 additions and 65 deletions
+23
View File
@@ -166,6 +166,29 @@ namespace gui {
return checked_;
}
};
class FullCheckBox : public Panel {
protected:
std::shared_ptr<CheckBox> checkbox;
public:
FullCheckBox(std::wstring text, glm::vec2 size, bool checked=false);
virtual void supplier(boolsupplier supplier) {
checkbox->supplier(supplier);
}
virtual void consumer(boolconsumer consumer) {
checkbox->consumer(consumer);
}
virtual void checked(bool flag) {
checkbox->checked(flag);
}
virtual bool checked() const {
return checkbox->checked();
}
};
}
#endif // FRONTEND_GUI_CONTROLS_H_