From 5fcf57739e68a8b5053e03778aaee0eed445babd Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 11 Mar 2021 22:00:22 -0500 Subject: settings editor, and lots of changes in service of that --- src/user/settings/model.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/user/settings/model.h (limited to 'src/user/settings/model.h') 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 +#include + +union setting_data { + char *string; + _pixel_t color; +}; + +struct setting { + enum { + STRING, + COLOR + } kind; + union setting_data data; + const char *name; +}; + +extern alist settings; +extern raleigh::saving_window *main_w; + +#endif \ No newline at end of file -- cgit v1.2.3