diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-07-02 04:42:46 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-07-02 04:42:46 +0200 |
commit | c8e338fa9c19e3a017a9641035279c23e5c57d8d (patch) | |
tree | 42bc24468b6d9ba025cf10d0ba1d855295cc8e3d /screen_ui.h | |
parent | Merge "screen_ui: Compute the top and bottom gaps." (diff) | |
parent | Update ScreenRecoveryUI::Draw* function signatures. (diff) | |
download | android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar.gz android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar.bz2 android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar.lz android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar.xz android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.tar.zst android_bootable_recovery-c8e338fa9c19e3a017a9641035279c23e5c57d8d.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 |