diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-04-11 11:18:45 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-04-11 11:18:45 +0000 |
commit | 442174635748c8a619f0dbb248c8c526290b43d1 (patch) | |
tree | b430088c13bc70a97b5fbf34ee3b25f4c146c213 /apps/gui/skin_engine/wps_internals.h | |
parent | 9d633740a402d9b390120b30798661d325fad049 (diff) | |
download | rockbox-442174635748c8a619f0dbb248c8c526290b43d1.tar.gz rockbox-442174635748c8a619f0dbb248c8c526290b43d1.zip |
Rework how progressbars are managed so you can have as many bars in a viewport as you want (!).
Change %pv (volume) to be able to be drawn in the same style as %pb (using a line or a bmp). %pv - no change, %pv|bmp|x|y|width|height| exactly like %pb
DO NOT use %?pv|....| because it will draw when you dont want it to!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25584 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r-- | apps/gui/skin_engine/wps_internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index b0f5f36eb5..954928085f 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h | |||
@@ -91,6 +91,8 @@ struct gui_img { | |||
91 | 91 | ||
92 | 92 | ||
93 | struct progressbar { | 93 | struct progressbar { |
94 | enum wps_token_type type; | ||
95 | struct viewport *vp; | ||
94 | /* regular pb */ | 96 | /* regular pb */ |
95 | short x; | 97 | short x; |
96 | /* >=0: explicitly set in the tag -> y-coord within the viewport | 98 | /* >=0: explicitly set in the tag -> y-coord within the viewport |
@@ -202,7 +204,6 @@ struct skin_line { | |||
202 | #define VP_INFO_LABEL '_' | 204 | #define VP_INFO_LABEL '_' |
203 | struct skin_viewport { | 205 | struct skin_viewport { |
204 | struct viewport vp; /* The LCD viewport struct */ | 206 | struct viewport vp; /* The LCD viewport struct */ |
205 | struct progressbar *pb; | ||
206 | struct skin_line *lines; | 207 | struct skin_line *lines; |
207 | char hidden_flags; | 208 | char hidden_flags; |
208 | char label; | 209 | char label; |