diff options
author | Thomas Martitz <kugel@rockbox.org> | 2013-12-20 23:34:28 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 11:36:00 +0100 |
commit | 6630958533d02d66dca8cc79897fda2cb744c076 (patch) | |
tree | 598f20a9ebd1248dd4fdbfdf3875ab928f80980a /apps/screen_access.h | |
parent | b8505222c02a7a5a19571c3d4577f3b473cb8558 (diff) | |
download | rockbox-6630958533d02d66dca8cc79897fda2cb744c076.tar.gz rockbox-6630958533d02d66dca8cc79897fda2cb744c076.zip |
lcd-common/scroll_engine: Introduce lcd_putsxy_scroll_func().
This function supports installing a custom scroll callback. This will be
called when the scrollengine redraws the line. It allows to draw extended
styles (or anything your can possible imagine) along with the text.
It is also strictly pixel-based, the first pixel-based function that supports
scrolling.
Change-Id: I57f81ac7b3d08b877aea4cb8afa882f175ebcdfc
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r-- | apps/screen_access.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h index 90b63ea338..210ad2e990 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | #include "buttonbar.h" | 26 | #include "buttonbar.h" |
27 | #include "scroll_engine.h" | ||
27 | #include "backdrop.h" | 28 | #include "backdrop.h" |
28 | 29 | ||
29 | #if defined(HAVE_REMOTE_LCD) && !defined (ROCKBOX_HAS_LOGF) | 30 | #if defined(HAVE_REMOTE_LCD) && !defined (ROCKBOX_HAS_LOGF) |
@@ -143,6 +144,9 @@ struct screen | |||
143 | void (*puts_scroll)(int x, int y, const unsigned char *string); | 144 | void (*puts_scroll)(int x, int y, const unsigned char *string); |
144 | void (*puts_scroll_offset)(int x, int y, const unsigned char *string, | 145 | void (*puts_scroll_offset)(int x, int y, const unsigned char *string, |
145 | int x_offset); | 146 | int x_offset); |
147 | void (*putsxy_scroll_func)(int x, int y, const unsigned char *string, | ||
148 | void (*scroll_func)(struct scrollinfo *), | ||
149 | void *data, int x_offset); | ||
146 | void (*scroll_speed)(int speed); | 150 | void (*scroll_speed)(int speed); |
147 | void (*scroll_delay)(int ms); | 151 | void (*scroll_delay)(int ms); |
148 | void (*clear_display)(void); | 152 | void (*clear_display)(void); |