source: trunk/include/gui.h @ 649

Revision 649, 921 bytes checked in by phyrephox, 4 years ago (diff)

+ new game: Mastermind (see http://en.wikipedia.org/wiki/Mastermind_(board_game) ) by Kettmeister (german forum)
this will be the last game i will add to chdk, i promise :D
you can exclude it from compilation via buildconf.inc switch (i will disable it at default as soon as people start complaining about low memory space...)

have fun!

  • Property svn:eol-style set to native
Line 
1#ifndef GUI_H
2#define GUI_H
3
4typedef unsigned int    coord;
5typedef unsigned short  color;
6
7#define MAKE_COLOR(bg, fg)      ((color)((((char)(bg))<<8)|((char)(fg))))
8
9enum Gui_Mode { GUI_MODE_NONE = 0,
10                GUI_MODE_ALT,
11                GUI_MODE_MENU,
12                GUI_MODE_PALETTE,
13                GUI_MODE_MBOX,
14                GUI_MODE_REVERSI,
15                GUI_MODE_SOKOBAN,
16                GUI_MODE_DEBUG,
17                GUI_MODE_FSELECT,
18                GUI_MODE_READ,
19                GUI_MODE_OSD,
20                GUI_MODE_CALENDAR,
21                GUI_MODE_BENCH,
22                GUI_MODE_MPOPUP,
23                GUI_MODE_4WINS,
24                                GUI_MODE_MASTERMIND};
25
26extern void gui_redraw();
27extern void gui_force_restore();
28
29extern void draw_pixel(coord x, coord y, color cl);
30
31extern enum Gui_Mode gui_get_mode();
32extern void gui_set_mode(enum Gui_Mode mode);
33extern void gui_update_script_submenu();
34#endif
Note: See TracBrowser for help on using the repository browser.