summaryrefslogtreecommitdiff
path: root/src/user/settings/model.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-11 22:00:22 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-11 22:00:22 -0500
commit5fcf57739e68a8b5053e03778aaee0eed445babd (patch)
treee7a8bab18668d112e58b1b48190195035c71fa8a /src/user/settings/model.h
parent0f2398d1f622cce37925f52d978d92e6cce1c7a9 (diff)
downloadportland-os-5fcf57739e68a8b5053e03778aaee0eed445babd.tar.gz
settings editor, and lots of changes in service of that
Diffstat (limited to 'src/user/settings/model.h')
-rw-r--r--src/user/settings/model.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/user/settings/model.h b/src/user/settings/model.h
new file mode 100644
index 0000000..0c9b1d2
--- /dev/null
+++ b/src/user/settings/model.h
@@ -0,0 +1,24 @@
+#ifndef MODEL_H
+#define MODEL_H
+
+#include <raleigh/d/saving_window.h>
+#include <structs/alist.h>
+
+union setting_data {
+ char *string;
+ _pixel_t color;
+};
+
+struct setting {
+ enum {
+ STRING,
+ COLOR
+ } kind;
+ union setting_data data;
+ const char *name;
+};
+
+extern alist<struct setting> settings;
+extern raleigh::saving_window *main_w;
+
+#endif \ No newline at end of file