summaryrefslogtreecommitdiff
path: root/apps/screen_access.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-10-10 23:15:05 +0000
committerThomas Martitz <kugel@rockbox.org>2010-10-10 23:15:05 +0000
commit8a0152bd4ae638c1fe4917b855fcb9fc6a15202c (patch)
tree7a3a81bf30d49a3c072d89485f79207bc7d2c29e /apps/screen_access.h
parent752c91b50dcf36e4476cf89cceb6493e2fd4c586 (diff)
downloadrockbox-8a0152bd4ae638c1fe4917b855fcb9fc6a15202c.tar.gz
rockbox-8a0152bd4ae638c1fe4917b855fcb9fc6a15202c.zip
Two new lcd/multi screen api convinience functions: draw_viewport(), fill_viewport().
They work as the drawrect/fillrect pendants but work on a viewport basis; pass NULL to draw the current viewport (the one set with set_viewport()). In conjunction with action_get_touchscreen_press_in_vp() it should be less of a pain to draw buttons and get presses on them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28239 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r--apps/screen_access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h
index a154d20195..fb7aa7bd26 100644
--- a/apps/screen_access.h
+++ b/apps/screen_access.h
@@ -117,6 +117,8 @@ struct screen
117 void (*update_viewport_rect)(int x, int y, int width, int height); 117 void (*update_viewport_rect)(int x, int y, int width, int height);
118 void (*fillrect)(int x, int y, int width, int height); 118 void (*fillrect)(int x, int y, int width, int height);
119 void (*drawrect)(int x, int y, int width, int height); 119 void (*drawrect)(int x, int y, int width, int height);
120 void (*fill_viewport)(const struct viewport *vp);
121 void (*draw_viewport)(const struct viewport *vp);
120 void (*drawpixel)(int x, int y); 122 void (*drawpixel)(int x, int y);
121 void (*drawline)(int x1, int y1, int x2, int y2); 123 void (*drawline)(int x1, int y1, int x2, int y2);
122 void (*vline)(int x, int y1, int y2); 124 void (*vline)(int x, int y1, int y2);
@@ -139,8 +141,6 @@ struct screen
139 void (*puts_scroll)(int x, int y, const unsigned char *string); 141 void (*puts_scroll)(int x, int y, const unsigned char *string);
140 void (*puts_scroll_offset)(int x, int y, const unsigned char *string, 142 void (*puts_scroll_offset)(int x, int y, const unsigned char *string,
141 int x_offset); 143 int x_offset);
142 void (*puts_scroll_xyoffset)(int x, int y, const unsigned char *string,
143 int x_offset, int y_offset);
144 void (*scroll_speed)(int speed); 144 void (*scroll_speed)(int speed);
145 void (*scroll_delay)(int ms); 145 void (*scroll_delay)(int ms);
146 void (*stop_scroll)(void); 146 void (*stop_scroll)(void);