summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-10-06 12:46:42 +0000
committerThomas Martitz <kugel@rockbox.org>2010-10-06 12:46:42 +0000
commitd9d0b4dd20c440b111930bccd87d29999299c1b1 (patch)
tree3c165d0a5276155add762c6779137aa10f7f7ab5 /apps/screen_access.h
parent53a936ab833ea3cfd460d4713f45a8ab98e6620a (diff)
downloadrockbox-d9d0b4dd20c440b111930bccd87d29999299c1b1.tar.gz
rockbox-d9d0b4dd20c440b111930bccd87d29999299c1b1.tar.bz2
rockbox-d9d0b4dd20c440b111930bccd87d29999299c1b1.zip
Pixel-accurate (vertical) list scrolling for touchscreen targets.
Looks much smoother now as you don't scroll by whole lines anymore. Add some functions lcd driver to enable the line based scrolling engine to draw the lines with a pixel-based y-offset. This should also allow for a sensible kinetic scrolling mechanism (still a todo). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28214 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r--apps/screen_access.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h
index 463ca3fd6a..a154d20195 100644
--- a/apps/screen_access.h
+++ b/apps/screen_access.h
@@ -77,11 +77,15 @@ struct screen
void (*scroll_step)(int pixels);
void (*puts_style_offset)(int x, int y, const unsigned char *str,
- int style, int offset);
+ int style, int x_offset);
+ void (*puts_style_xyoffset)(int x, int y, const unsigned char *str,
+ int style, int x_offset, int y_offset);
void (*puts_scroll_style)(int x, int y, const unsigned char *string,
int style);
void (*puts_scroll_style_offset)(int x, int y, const unsigned char *string,
- int style, int offset);
+ int style, int x_offset);
+ void (*puts_scroll_style_xyoffset)(int x, int y, const unsigned char *string,
+ int style, int x_offset, int y_offset);
void (*mono_bitmap)(const unsigned char *src,
int x, int y, int width, int height);
void (*mono_bitmap_part)(const unsigned char *src, int src_x, int src_y,
@@ -134,7 +138,9 @@ struct screen
void (*puts_offset)(int x, int y, const unsigned char *str, int offset);
void (*puts_scroll)(int x, int y, const unsigned char *string);
void (*puts_scroll_offset)(int x, int y, const unsigned char *string,
- int offset);
+ int x_offset);
+ void (*puts_scroll_xyoffset)(int x, int y, const unsigned char *string,
+ int x_offset, int y_offset);
void (*scroll_speed)(int speed);
void (*scroll_delay)(int ms);
void (*stop_scroll)(void);