forked from ProjectZeroSlackr/ipodloader2
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmenu.h
More file actions
19 lines (14 loc) · 650 Bytes
/
menu.h
File metadata and controls
19 lines (14 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _MENU_H_
#define _MENU_H_
#include "bootloader.h"
#define MAX_MENU_ITEMS 16 // 5G model can show much more than 10 items
void menu_cls(uint16 *fb);
void menu_init();
void menu_additem(char *text);
void menu_redraw(uint16 *fb, int selectedItem, char *title, char *countDown, int drawLock);
void menu_drawprogress(uint16 *fb, uint8 completed);
void menu_drawrect(uint16 *fb, int x1, int y1, int x2, int y2, uint16 color);
void menu_hline (uint16 *fb, int x1, int x2, int y, uint16 color);
void menu_vline (uint16 *fb, int x, int y1, int y2, uint16 color);
void menu_frame (uint16 *fb, int x1, int y1, int x2, int y2, uint16 color);
#endif