summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-01-13 06:02:38 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-01-13 06:02:38 +0000
commitdc0ba917fa94a554a166b1939548b06c9ee49307 (patch)
tree872f0b9f57f1ab5d1c28f69f4118fba704f27d85 /apps/gui/skin_engine/wps_internals.h
parent8b926e98f82a8b6ffccc40a65388b6bbcd1c2538 (diff)
downloadrockbox-dc0ba917fa94a554a166b1939548b06c9ee49307.tar.gz
rockbox-dc0ba917fa94a554a166b1939548b06c9ee49307.zip
FS#10898 - Add a playlist viewer to the WPS. http://www.rockbox.org/wiki/CustomWPS#Playlist_viewer for an exaplanation how to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index bd0c1c01c7..362f3947e7 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -225,6 +225,26 @@ struct touchregion {
225}; 225};
226#endif 226#endif
227 227
228#define MAX_PLAYLISTLINE_TOKENS 16
229#define MAX_PLAYLISTLINE_STRINGS 8
230#define MAX_PLAYLISTLINE_STRLEN 8
231enum info_line_type {
232 TRACK_HAS_INFO = 0,
233 TRACK_HAS_NO_INFO
234};
235struct playlistviewer {
236 struct viewport *vp;
237 bool show_icons;
238 int start_offset;
239 struct {
240 enum wps_token_type tokens[MAX_PLAYLISTLINE_TOKENS];
241 char strings[MAX_PLAYLISTLINE_STRINGS][MAX_PLAYLISTLINE_STRLEN];
242 int count;
243 bool scroll;
244 } lines[2];
245};
246
247
228 248
229#ifdef HAVE_ALBUMART 249#ifdef HAVE_ALBUMART
230struct skin_albumart { 250struct skin_albumart {