summaryrefslogtreecommitdiff
path: root/src/user/include/popups/popup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/popups/popup.h')
-rw-r--r--src/user/include/popups/popup.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/user/include/popups/popup.h b/src/user/include/popups/popup.h
new file mode 100644
index 0000000..1a3c531
--- /dev/null
+++ b/src/user/include/popups/popup.h
@@ -0,0 +1,23 @@
+#ifndef POPUPS_POPUP_H
+#define POPUPS_POPUP_H
+
+#include <pland/syscall.h>
+
+struct popup {
+ _window_handle_t handle;
+ uint8_t *pixbuf;
+
+ bool has_quit;
+ struct key_packet quit_as;
+
+ //terminated by one with .key_id == 0
+ struct key_packet *quit_binds;
+ bool free_quit_binds;
+};
+
+void handle_actions(struct popup *p);
+//deletes popup before returning
+void make_modal(struct popup *p);
+void delete_popup(struct popup *p);
+
+#endif \ No newline at end of file