aboutsummaryrefslogtreecommitdiff
path: root/include/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-06 08:59:38 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-06 08:59:38 +0200
commitb229b060add5f66bd5532698c4a790285095e98a (patch)
treeb93a1993370b263245c1ead33dd6985429b0eba9 /include/gui
parentb3f5a53ecec329538de7ee18f9f5201c4a37f323 (diff)
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
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/CheckBox.hpp4
1 files changed, 1 insertions, 3 deletions
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 <functional>
#include <mglpp/graphics/Color.hpp>
#include <mglpp/graphics/Text.hpp>
@@ -17,8 +16,7 @@ namespace gsr {
void draw(mgl::Window &window, mgl::vec2f offset) override;
mgl::vec2f get_size() override;
-
- std::function<void()> on_click;
+ bool is_checked() const;
private:
mgl::vec2f get_checkbox_size();
private: