summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/imutils_button.hh
diff options
context:
space:
mode:
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