diff options
author | Elliott Hughes <enh@google.com> | 2015-04-15 19:05:35 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-15 19:05:35 +0200 |
commit | 6e435abfeb7256b5ea82ca37166acf36e3f98085 (patch) | |
tree | fa39003f9127c243b686264b48d5d2671e2ce8ac /screen_ui.h | |
parent | Merge "Add missing \n after "Mounting /system." message." (diff) | |
parent | Move the menu header out of the menu. (diff) | |
download | android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar.gz android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar.bz2 android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar.lz android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar.xz android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.tar.zst android_bootable_recovery-6e435abfeb7256b5ea82ca37166acf36e3f98085.zip |
Diffstat (limited to '')
-rw-r--r-- | screen_ui.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h index 50a456425..d473b8e94 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -61,7 +61,9 @@ class ScreenRecoveryUI : public RecoveryUI { void Redraw(); - enum UIElement { HEADER, MENU, MENU_SEL_BG, MENU_SEL_BG_ACTIVE, MENU_SEL_FG, LOG, TEXT_FILL }; + enum UIElement { + HEADER, MENU, MENU_SEL_BG, MENU_SEL_BG_ACTIVE, MENU_SEL_FG, LOG, TEXT_FILL, INFO + }; void SetColor(UIElement e); private: @@ -95,8 +97,9 @@ class ScreenRecoveryUI : public RecoveryUI { bool show_text_ever; // has show_text ever been true? char** menu; + const char* const* menu_headers; bool show_menu; - int menu_top, menu_items, menu_sel; + int menu_items, menu_sel; pthread_t progress_thread_; @@ -121,6 +124,8 @@ class ScreenRecoveryUI : public RecoveryUI { void ClearText(); void DrawHorizontalRule(int* y); + void DrawTextLine(int* y, const char* line, bool bold); + void DrawTextLines(int* y, const char* const* lines); void LoadBitmap(const char* filename, gr_surface* surface); void LoadBitmapArray(const char* filename, int* frames, gr_surface** surface); |