diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-07 21:27:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-07 21:27:36 +0200 |
commit | 1a49f86e9841035fe670f6b42a3c988f737267d2 (patch) | |
tree | 9059935a17d2599ae9f366975472314a9c89e052 /src/gui/CheckBox.cpp | |
parent | b709805cfac4d1fe1bfe28e497a3e48e224372a8 (diff) |
Add settings icon, close window when pressing the close button
Diffstat (limited to 'src/gui/CheckBox.cpp')
-rw-r--r-- | src/gui/CheckBox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/CheckBox.cpp b/src/gui/CheckBox.cpp index 94e5f9e..e0904ba 100644 --- a/src/gui/CheckBox.cpp +++ b/src/gui/CheckBox.cpp @@ -75,6 +75,10 @@ namespace gsr { return mgl::vec2f(text_bounds.y, text_bounds.y).floor(); } + void CheckBox::set_checked(bool checked) { + this->checked = checked; + } + bool CheckBox::is_checked() const { return checked; } |