summaryrefslogtreecommitdiff
path: root/src/user/settings/model.h
blob: 0c9b1d2ddcbcf3342cbc695695be729e1ce8d82a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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