aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils/Dialog/Dialog.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-03-27 23:01:07 -0700
committerrtk0c <[email protected]>2021-03-27 23:01:07 -0700
commit442d2d75d71bbc057e667edc301a79fa1cc813be (patch)
treeb5d1e5068a4d481bc6bcd72dca851ac7a85bf7e4 /core/src/Utils/Dialog/Dialog.cpp
Initial setup
Diffstat (limited to 'core/src/Utils/Dialog/Dialog.cpp')
-rw-r--r--core/src/Utils/Dialog/Dialog.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/Utils/Dialog/Dialog.cpp b/core/src/Utils/Dialog/Dialog.cpp
new file mode 100644
index 0000000..c4459c0
--- /dev/null
+++ b/core/src/Utils/Dialog/Dialog.cpp
@@ -0,0 +1,18 @@
+// Adapted from https://github.com/aaronmjacobs/Boxer/blob/master/include/boxer/boxer.h
+#include "Dialog.hpp"
+
+namespace Dialog {
+
+Selection Show(const char* message, const char* title, Style style) {
+ return Show(message, title, style, kDefaultButtons);
+}
+
+Selection Show(const char* message, const char* title, Buttons buttons) {
+ return Show(message, title, kDefaultStyle, buttons);
+}
+
+Selection Show(const char* message, const char* title) {
+ return Show(message, title, kDefaultStyle, kDefaultButtons);
+}
+
+} // namespace Dialog