diff options
Diffstat (limited to 'screen_ui.h')
-rw-r--r-- | screen_ui.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/screen_ui.h b/screen_ui.h index 93d06bc..9d7b263 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -23,6 +23,9 @@ #include "ui.h" #include "minui/minui.h" +#define SYSBAR_BACK 0x01 +#define SYSBAR_HOME 0x02 + // Implementation of RecoveryUI appropriate for devices with a screen // (shows an icon + a progress bar, text logging, menu, etc.) class ScreenRecoveryUI : public RecoveryUI { @@ -60,6 +63,11 @@ class ScreenRecoveryUI : public RecoveryUI { void DialogDismiss(); void SetHeadlessMode(); + // sysbar + int GetSysbarHeight() { return gr_get_height(sysbarBackHighlightIcon); } + int GetSysbarState() { return sysbar_state; } + void SetSysbarState(int state) { sysbar_state = state; Redraw(); } + // menu display virtual int MenuItemStart() const { return menu_item_start_; } virtual int MenuItemHeight() const { return 3 * char_height_; } @@ -87,6 +95,10 @@ class ScreenRecoveryUI : public RecoveryUI { pthread_cond_t progressCondition; GRSurface* headerIcon; + GRSurface* sysbarBackIcon; + GRSurface* sysbarBackHighlightIcon; + GRSurface* sysbarHomeIcon; + GRSurface* sysbarHomeHighlightIcon; GRSurface* backgroundIcon[NR_ICONS]; GRSurface* backgroundText[NR_ICONS]; GRSurface** installation; @@ -126,6 +138,8 @@ class ScreenRecoveryUI : public RecoveryUI { int menu_show_start_; int max_menu_rows_; + int sysbar_state; + // An alternate text screen, swapped with 'text_' when we're viewing a log file. char** file_viewer_text_; @@ -147,6 +161,7 @@ class ScreenRecoveryUI : public RecoveryUI { int char_height_, char_width_; int header_height_, header_width_; + int sysbar_height_; int text_first_row_; bool update_waiting; @@ -155,6 +170,7 @@ class ScreenRecoveryUI : public RecoveryUI { void draw_progress_locked(); int draw_header_icon(); void draw_menu_item(int textrow, const char *text, int selected); + void draw_sysbar(); void draw_dialog(); void draw_screen_locked(); void update_screen_locked(); |