13 KEY_NUM_0 = 256, KEY_NUM_1, KEY_NUM_2, KEY_NUM_3, KEY_NUM_4,
14 KEY_NUM_5, KEY_NUM_6, KEY_NUM_7, KEY_NUM_8, KEY_NUM_9,
15 KEY_NUM_DOT, KEY_NUM_DIV, KEY_NUM_MUL, KEY_NUM_MINUS, KEY_NUM_PLUS, KEY_NUM_ENTER, KEY_NUM_EQUALS,
16 KEY_UP, KEY_DOWN, KEY_RIGHT, KEY_LEFT,
17 KEY_INS, KEY_HOME, KEY_END, KEY_PGUP, KEY_PGDN,
18 KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6,
19 KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12,
20 KEY_F13, KEY_F14, KEY_F15,
21 KEY_NUMLK, KEY_CAPSLK, KEY_SCRLK,
22 KEY_RSHIFT, KEY_LSHIFT, KEY_RCTRL, KEY_LCTRL, KEY_RALT, KEY_LALT,
23 KEY_RMETA, KEY_LMETA, KEY_LSUPER, KEY_RSUPER, KEY_MODE, KEY_COMPOSE,
24 KEY_HELP, KEY_PRINT, KEY_SYSRQ, KEY_BREAK
31 #define KEY_SHIFT (-4)
45 void (*destroy)(void);
48 void (*display)(void);
49 void (*reshape)(int, int);
50 void (*keyboard)(int, int);
51 void (*mouse)(int, int, int, int);
52 void (*motion)(int, int);
55 extern int mouse_x, mouse_y, mouse_state[3];
56 extern unsigned int modkeys;
57 extern int scr_width, scr_height;
60 extern long time_msec;
61 extern struct app_screen *cur_scr;
62 extern struct app_screen menuscr;
64 extern unsigned char *framebuf;
68 void app_shutdown(void);
70 void app_display(void);
71 void app_reshape(int x, int y);
72 void app_keyboard(int key, int press);
73 void app_mouse(int bn, int st, int x, int y);
74 void app_motion(int x, int y);
76 void app_chscr(struct app_screen *scr);
78 void gui_fill(rtk_rect *rect, int color);
79 void gui_drawtext(int x, int y, const char *str);
80 void gui_textrect(const char *str, rtk_rect *rect);
82 /* defined in main.c */
83 void app_invalidate(int x, int y, int w, int h);
84 void app_swap_buffers(void);
86 void app_resize(int x, int y);
87 void app_fullscreen(int fs);