summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-10-07 10:10:27 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-07 10:10:27 +0200
commit6f5ed7b28aa47b9aa2b33c7788c25792307e088d (patch)
tree859affca35020cf3177db3ba5c80577530984ffc /screen_ui.h
parentSnap for 4380820 from b59132d66c5e77970d05d195210872987cf0e69c to pi-release (diff)
parentMerge "Don't include "error_code.h" in edify/expr.h." am: d999ced1d1 am: e196918f54 am: 3bc65953ab (diff)
downloadandroid_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar.gz
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar.bz2
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar.lz
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar.xz
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.tar.zst
android_bootable_recovery-6f5ed7b28aa47b9aa2b33c7788c25792307e088d.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 3a28a09de..f05761c42 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -124,12 +124,23 @@ class ScreenRecoveryUI : public RecoveryUI {
virtual int GetProgressBaseline() const;
virtual int GetTextBaseline() const;
+ // Returns pixel width of draw buffer.
+ virtual int ScreenWidth() const;
+ // Returns pixel height of draw buffer.
+ virtual int ScreenHeight() const;
+
// Draws a highlight bar at (x, y) - (x + width, y + height).
virtual void DrawHighlightBar(int x, int y, int width, int height) 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 surface portion (sx, sy, w, h) at screen location (dx, dy).
+ virtual void DrawSurface(GRSurface* surface, int sx, int sy, int w, int h, int dx, int dy) const;
+ // Draws rectangle at (x, y) - (x + w, y + h).
+ virtual void DrawFill(int x, int y, int w, int h) const;
+ // Draws given surface (surface->pixel_bytes = 1) as text at (x, y).
+ virtual void DrawTextIcon(int x, int y, GRSurface* surface) 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;
// Similar to DrawTextLines() to draw multiple text lines, but additionally wraps long lines.