rockbox/lib/skin_parser
Jonathan Gordon 9b6ac01c7b Lists can now be completly draw using the skin engine!
due to lack of user feedback the actual tags may change, hopefully not though.

The way it works is the skin specifies a rectangle and a viewport label. For each item in the list that is being displayed all viewports with the specified label are drawn. However, instead of the viewport x/y position being offset from the top left corner like normal they are offset from the rectangle position in the list (so think of them as child-viewports of the rectangle which moves).
Normally the rectangle will move down the screen to show a normal list, this can be changed to move across the screen in a grid pattern.
The UI viewport is used to bound the items (i.e %Vi() )
Scrolling is completly disabled in all items except the currently selected item.

This works well in combination with the %cs tag to show differently styled lists based on the current screen :)

New tags:
%LT - Get the current items text
%LI - Get the current items icon number
%Lc - Use as a conditional to determine if the current item is the selected item
%LB - BAR TAG to show the scroll bar, params/options like other bar types. It still needs a bit of work though. Use as a conditional to find out if the bar is actually needed
%Lb(viewport, width, height [,tile]) - specify the viewport label to draw for each item and the size of each item. if the last param is 'tile' it will form a grid instead of a list

example.sbs:
%?cs<%Lb(a,100,20)|>
%V(0,0,10,-,1)%Vf(aabbcc)
%?LB<%LB(0,0,10,185, invert)>
%Vi(-,10,0,-,-35,1)
%Vl(a,5,5,160,12,1)
%s%?Lc<%Vg(00ffaa, ff0000, 000000)%Vs(gradient)%>%>%>%ac>zzzzzzz            %LT         zzzzz%s%?Lc<%ar%<%<%<>
%V(0,185,-,-,1)
%s%LT

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30461 a1c6a512-1295-4272-9138-f99709370657
2011-09-06 13:49:41 +00:00
..
Makefile Theme Editor: make cross compiling on OS X work. 2011-03-05 12:50:46 +00:00
skin_buffer.c fix build 2011-01-27 11:33:33 +00:00
skin_buffer.h FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. 2010-07-29 12:37:48 +00:00
skin_debug.c Add some better debug info for when checkwps erros out because of full skin buffer 2011-01-27 11:27:53 +00:00
skin_debug.h skinparser lib: even more const correctness, should fix checkwps 2010-07-31 16:30:22 +00:00
skin_parser.c Fix further 'variable set but not used' warnings reported from GCC 4.6.0. 2011-05-01 13:48:28 +00:00
skin_parser.h Correct spelling of 'seperate' in the skin parsing code - FS#11724 by Alexander Levin 2010-11-05 09:51:19 +00:00
skin_parser.make Moved libskin_parser to lib. Added it to link line. 2010-06-24 11:47:37 +00:00
skin_scan.c Correct spelling of 'seperate' in the skin parsing code - FS#11724 by Alexander Levin 2010-11-05 09:51:19 +00:00
skin_scan.h skinparser lib: more const correctness 2010-07-31 16:25:41 +00:00
SOURCES FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. 2010-07-29 12:37:48 +00:00
symbols.h Correct spelling of 'seperate' in the skin parsing code - FS#11724 by Alexander Levin 2010-11-05 09:51:19 +00:00
tag_table.c Lists can now be completly draw using the skin engine! 2011-09-06 13:49:41 +00:00
tag_table.h Lists can now be completly draw using the skin engine! 2011-09-06 13:49:41 +00:00