summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/touch/touch.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/touch/touch.h b/include/touch/touch.h
index 7dddaf36eb8c..56e0eec63591 100644
--- a/include/touch/touch.h
+++ b/include/touch/touch.h
@@ -57,6 +57,27 @@ void touch_ui_show_keyboard();
void touch_ui_hide_keyboard();
bool touch_ui_keyboard_visible();
+// Dialogs, work in progress, no clear plan yet what to do
+
+typedef enum {
+ MLODialogMessage,
+ MLODialogInformation,
+ MLODialogWarning,
+ MLODialogError,
+ MLODialogQuery
+} MLODialogKind;
+
+typedef enum {
+ MLODialogOK,
+ MLODialogCancel,
+ MLODialogNo,
+ MLODialogYes,
+ MLODialogRetry,
+ MLODialogIgnore,
+} MLODialogResult;
+
+MLODialogResult touch_ui_dialog_modal(MLODialogKind kind, const char *message);
+
typedef enum {
MLOSelectionNone,
MLOSelectionText,