summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-07-02 04:54:16 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-07-02 04:54:16 +0200
commit154a6e71a68a43c4dbd715745e120f27aac10e19 (patch)
tree3b77dc4311e746e4d1c4f97aca0dc245e09f6434 /screen_ui.h
parentscreen_ui: Compute the top and bottom gaps. am: f95e686dd0 -s ours (diff)
parentMerge "Update ScreenRecoveryUI::Draw* function signatures." am: c8e338fa9c am: c24d97fafa (diff)
downloadandroid_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.gz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.bz2
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.lz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.xz
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.tar.zst
android_bootable_recovery-154a6e71a68a43c4dbd715745e120f27aac10e19.zip
Diffstat (limited to 'screen_ui.h')
-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