summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-06-28 23:52:17 +0200
committerTao Bao <tbao@google.com>2017-07-02 02:41:24 +0200
commitea78d86b44661c69fcb740b9d40b47af821dbd57 (patch)
tree42bc24468b6d9ba025cf10d0ba1d855295cc8e3d /screen_ui.h
parentMerge "screen_ui: Compute the top and bottom gaps." (diff)
downloadandroid_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.gz
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.bz2
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.lz
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.xz
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.zst
android_bootable_recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.h10
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