Began creating the listbox widget. It's still just a structure.
[xuni.git] / options.h
blob8b4debe87215dfbe781a2c0d40aa65108f62894a
1 #ifndef OPTIONS_H
2 #define OPTIONS_H
4 #include "graphics.h"
5 #include "loop.h"
7 enum options_mode_t {
8 OMODE_NORMAL,
9 OMODE_GRAPHICS,
10 OMODE_THEME
13 struct options_data_t {
14 int loaded;
15 enum options_mode_t mode;
17 struct {
18 struct widget_t widget[3];
19 size_t lastid;
21 struct {
22 struct widget_t widget[4];
23 } graphics;
24 } gui;
27 void init_options(struct options_data_t *data, struct smode_t *smode,
28 struct font_t *font, struct theme_t *theme);
29 void start_options(struct options_data_t *data);
30 int options_event(SDL_Surface *screen, enum loop_mode_t *mode,
31 SDL_Event *event, struct options_data_t *data, struct smode_t *smode,
32 struct font_t *font, struct theme_t *theme);
33 void paint_options(SDL_Surface *screen, struct options_data_t *data,
34 struct smode_t *smode, struct font_t *font, struct theme_t *theme);
35 void free_options(struct options_data_t *data);
37 #endif