-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmenu.h
29 lines (25 loc) · 852 Bytes
/
menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
struct menu {
signed int row;
char *key;
char *text;
};
extern SDL_bool menu_visible;
extern SDL_bool menu_dirty;
extern SDL_Surface *menu_surface;
extern int menu_width, menu_height;
void menu_cls(void);
int menu_init(int width, int height);
void menu_show(void);
void menu_hide(void);
void menu_print_menu(struct menu *menu);
void menu_draw_input(char *title);
void menu_update_input(char *text, int cursorpos);
void menu_draw_xfer(void);
void menu_update_xfer(int direction, int protocol);
void menu_draw_xfer_progress(char *filename, int direction, int protocol);
void menu_update_xfer_progress(char *message, int bytes, int total);
void menu_draw_rectangle(void);
void menu_draw_message(char *message);
void menu_draw_bookmarks(void);
void menu_fs_draw(char *title);
void menu_fs_draw_line(int line, char *text, int selected, int font);