From b229b060add5f66bd5532698c4a790285095e98a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2024 08:59:38 +0200 Subject: Make sure all sizes are scaled by window size, make sure all elements are visible for very low resolutions and text doesn't get too small --- include/gui/CheckBox.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/gui/CheckBox.hpp b/include/gui/CheckBox.hpp index 4459976..c91b947 100644 --- a/include/gui/CheckBox.hpp +++ b/include/gui/CheckBox.hpp @@ -1,7 +1,6 @@ #pragma once #include "Widget.hpp" -#include #include #include @@ -17,8 +16,7 @@ namespace gsr { void draw(mgl::Window &window, mgl::vec2f offset) override; mgl::vec2f get_size() override; - - std::function on_click; + bool is_checked() const; private: mgl::vec2f get_checkbox_size(); private: -- cgit v1.2.3