diff options
author | Tao Bao <tbao@google.com> | 2017-07-02 04:47:16 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-07-02 04:47:16 +0200 |
commit | c24d97fafa8f0530b3c5da74228d62e0d9033761 (patch) | |
tree | 82ee71b08bd23edc9cffd6c6e88a8cef96e2f82f /screen_ui.h | |
parent | Merge "screen_ui: Compute the top and bottom gaps." (diff) | |
parent | Merge "Update ScreenRecoveryUI::Draw* function signatures." (diff) | |
download | android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar.gz android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar.bz2 android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar.lz android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar.xz android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.tar.zst android_bootable_recovery-c24d97fafa8f0530b3c5da74228d62e0d9033761.zip |
Diffstat (limited to 'screen_ui.h')
-rw-r--r-- | screen_ui.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/screen_ui.h b/screen_ui.h index e8d3c3222..8402fac00 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -179,10 +179,14 @@ class ScreenRecoveryUI : public RecoveryUI { virtual int GetProgressBaseline() const; virtual int GetTextBaseline() const; - virtual void DrawHorizontalRule(int* y) const; + // Draws a highlight bar at (x, y) - (x + width, y + height). virtual void DrawHighlightBar(int x, int y, int width, int height) const; - virtual void DrawTextLine(int x, int* y, const char* line, bool bold) const; - void DrawTextLines(int x, int* y, const char* const* lines) const; + // Draws a horizontal rule at Y. Returns the offset it should be moving along Y-axis. + virtual int DrawHorizontalRule(int y) const; + // Draws a line of text. Returns the offset it should be moving along Y-axis. + virtual int DrawTextLine(int x, int y, const char* line, bool bold) const; + // Draws multiple text lines. Returns the offset it should be moving along Y-axis. + int DrawTextLines(int x, int y, const char* const* lines) const; }; #endif // RECOVERY_UI_H |