Merge 'progress' branch.
[neverball] / ball / util.h
1 #ifndef UTIL_H
2 #define UTIL_H
3
4 #include "set.h"
5
6 /*---------------------------------------------------------------------------*/
7
8 #define GUI_NULL_MASK 0x1000
9 #define GUI_NULL -100
10 #define GUI_BACK -101
11 #define GUI_PREV -102
12 #define GUI_NEXT -103
13 #define GUI_BS   -104
14 #define GUI_CL   -105
15
16 #define GUI_MOST_COINS  -106
17 #define GUI_BEST_TIMES  -107
18 #define GUI_UNLOCK_GOAL -108
19
20 #define GUI_NAME -109
21
22 void gui_score_set(int);
23 int  gui_score_get(void);
24 int  gui_score_next(int);
25
26 void gui_score_board(int, int, int);
27 void set_score_board(const struct score *, int,
28                      const struct score *, int,
29                      const struct score *, int);
30
31 void gui_keyboard(int);
32 void gui_keyboard_lock(void);
33 char gui_keyboard_char(char);
34
35 int  gui_back_prev_next(int, int, int);
36 int  gui_maybe(int, const char *, int, int);
37
38 /*---------------------------------------------------------------------------*/
39
40 #endif