summaryrefslogtreecommitdiffstats
path: root/minui/minui.h
diff options
context:
space:
mode:
authorDamien Bargiacchi <drb@google.com>2016-08-24 22:45:14 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-08-24 22:45:14 +0200
commite3c71849116f5f503b9cc633c96caee8fda51d30 (patch)
tree2a05cf57d7178cf5598594ee0e96e8d7316d927f /minui/minui.h
parentresolve merge conflicts of 7f8dc84 to nyc-mr1-dev-plus-aosp (diff)
parentSupport use of custom fonts in miniui (diff)
downloadandroid_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar.gz
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar.bz2
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar.lz
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar.xz
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.tar.zst
android_bootable_recovery-e3c71849116f5f503b9cc633c96caee8fda51d30.zip
Diffstat (limited to 'minui/minui.h')
-rw-r--r--minui/minui.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/minui/minui.h b/minui/minui.h
index 5362d3fe3..f6b42c628 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -33,6 +33,12 @@ struct GRSurface {
unsigned char* data;
};
+struct GRFont {
+ GRSurface* texture;
+ int char_width;
+ int char_height;
+};
+
int gr_init();
void gr_exit();
@@ -45,10 +51,14 @@ void gr_fb_blank(bool blank);
void gr_clear(); // clear entire surface to current color
void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
void gr_fill(int x1, int y1, int x2, int y2);
-void gr_text(int x, int y, const char *s, bool bold);
+
void gr_texticon(int x, int y, GRSurface* icon);
-int gr_measure(const char *s);
-void gr_font_size(int *x, int *y);
+
+const GRFont* gr_sys_font();
+int gr_init_font(const char* name, GRFont* dest);
+void gr_text(const GRFont* font, int x, int y, const char *s, bool bold);
+int gr_measure(const GRFont* font, const char *s);
+void gr_font_size(const GRFont* font, int *x, int *y);
void gr_blit(GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
unsigned int gr_get_width(GRSurface* surface);