summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/imutils_button.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
committeruntodesu <kirill@untode.su>2025-12-26 14:50:33 +0500
commit6c2abde5c99a236453b795abaa6d7d70105e31f7 (patch)
treef085049b9615a7d03cca5de40adb6529d6c13e11 /src/game/client/gui/imutils_button.hh
parentf40d09cb8f712e87691af4912f3630d92d692779 (diff)
downloadvoxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.tar.bz2
voxelius-6c2abde5c99a236453b795abaa6d7d70105e31f7.zip
Just a big Ctrl+H refactoring
Diffstat (limited to 'src/game/client/gui/imutils_button.hh')
-rw-r--r--src/game/client/gui/imutils_button.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/client/gui/imutils_button.hh b/src/game/client/gui/imutils_button.hh
new file mode 100644
index 0000000..0c80694
--- /dev/null
+++ b/src/game/client/gui/imutils_button.hh
@@ -0,0 +1,14 @@
+#pragma once
+
+namespace imutils
+{
+void button(const char* title, const ImVec2& size, void (*callback)(void));
+void button(const char* title, void (*callback)(void));
+} // namespace imutils
+
+namespace imutils
+{
+bool selectable_button(const char* label, const ImVec2& size, bool value);
+bool toggle_button(const char* label, const ImVec2& size, bool& value);
+bool toggle_button(const char* label, bool& value);
+} // namespace imutils