source: trunk/include/gui.h @ 1034

Revision 1034, 795 bytes checked in by reyalP, 3 years ago (diff)

Thanks to ultimaA, Lua and ubasic optional at compile time, from http://chdk.setepontos.com/index.php?topic=5793.msg59376#msg59376 with minor modifications: http://chdk.setepontos.com/index.php?topic=5793.msg59606#msg59606

  • 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 {
10    GUI_MODE_NONE = 0,
11    GUI_MODE_ALT,
12    GUI_MODE_MENU,
13    GUI_MODE_PALETTE,
14    GUI_MODE_MBOX,
15    GUI_MODE_REVERSI,
16    GUI_MODE_SOKOBAN,
17    GUI_MODE_DEBUG,
18    GUI_MODE_FSELECT,
19    GUI_MODE_READ,
20    GUI_MODE_OSD,
21    GUI_MODE_CALENDAR,
22    GUI_MODE_BENCH,
23    GUI_MODE_MPOPUP,
24    GUI_MODE_4WINS,
25    GUI_MODE_MASTERMIND
26};
27
28extern void gui_redraw();
29extern void gui_force_restore();
30
31extern void draw_pixel(coord x, coord y, color cl);
32
33extern enum Gui_Mode gui_get_mode();
34extern void gui_set_mode(enum Gui_Mode mode);
35
36#ifdef OPT_SCRIPTING
37extern void gui_update_script_submenu();
38#endif
39
40#endif
Note: See TracBrowser for help on using the repository browser.