aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2017-06-28 16:52:17 -0500
committerTao Bao2017-07-01 19:41:24 -0500
commitea78d86b44661c69fcb740b9d40b47af821dbd57 (patch)
tree42bc24468b6d9ba025cf10d0ba1d855295cc8e3d /screen_ui.h
parent344778c4efddb7701fa8234b51429d27a030356c (diff)
downloadplatform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.gz
platform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.tar.xz
platform-bootable-recovery-ea78d86b44661c69fcb740b9d40b47af821dbd57.zip
Update ScreenRecoveryUI::Draw* function signatures.
Move away from taking int* for the Y-offset. Change it to int and return the offset instead. Test: Check the recovery menu and 'Wipe data' menu. Change-Id: Ib15e070a0d576a0f8f66f35605cb8479e7071f26
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 e8d3c322..8402fac0 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -179,10 +179,14 @@ class ScreenRecoveryUI : public RecoveryUI {
179 virtual int GetProgressBaseline() const; 179 virtual int GetProgressBaseline() const;
180 virtual int GetTextBaseline() const; 180 virtual int GetTextBaseline() const;
181 181
182 virtual void DrawHorizontalRule(int* y) const; 182 // Draws a highlight bar at (x, y) - (x + width, y + height).
183 virtual void DrawHighlightBar(int x, int y, int width, int height) const; 183 virtual void DrawHighlightBar(int x, int y, int width, int height) const;
184 virtual void DrawTextLine(int x, int* y, const char* line, bool bold) const; 184 // Draws a horizontal rule at Y. Returns the offset it should be moving along Y-axis.
185 void DrawTextLines(int x, int* y, const char* const* lines) const; 185 virtual int DrawHorizontalRule(int y) const;
186 // Draws a line of text. Returns the offset it should be moving along Y-axis.
187 virtual int DrawTextLine(int x, int y, const char* line, bool bold) const;
188 // Draws multiple text lines. Returns the offset it should be moving along Y-axis.
189 int DrawTextLines(int x, int y, const char* const* lines) const;
186}; 190};
187 191
188#endif // RECOVERY_UI_H 192#endif // RECOVERY_UI_H