aboutsummaryrefslogtreecommitdiff
path: root/include/gui/Button.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-06 08:22:42 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-06 08:22:42 +0200
commit520c61ec64c001d2c9c9d953051aa58715831731 (patch)
tree2c0e10995d1a85374f628e78a53321f727013bf3 /include/gui/Button.hpp
parent9b6033e2b97f6f572cb69a393d4d1d1ea41b5d72 (diff)
Add checkbox, scale more sizes by window scale
Diffstat (limited to 'include/gui/Button.hpp')
-rw-r--r--include/gui/Button.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gui/Button.hpp b/include/gui/Button.hpp
index 4f8b404..f4c44ef 100644
--- a/include/gui/Button.hpp
+++ b/include/gui/Button.hpp
@@ -19,11 +19,13 @@ namespace gsr {
void draw(mgl::Window &window, mgl::vec2f offset) override;
mgl::vec2f get_size() override;
+ void set_border_scale(float scale);
std::function<void()> on_click;
private:
mgl::vec2f size;
mgl::Color bg_color;
mgl::Text text;
+ float border_scale = 0.0015f;
};
} \ No newline at end of file