diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-06-24 21:52:18 +1000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-07-05 11:15:16 +1000 |
| commit | d336eb30f8098f4a8f0bc27dc40358b30e57decd (patch) | |
| tree | 93d840e7096edf21469f6b4110ae7f49cab09c90 /manual/appendix | |
| parent | 3d0459dfadf0071112cd8406b9c210123b667e03 (diff) | |
| download | rockbox-d336eb30f8098f4a8f0bc27dc40358b30e57decd.zip rockbox-d336eb30f8098f4a8f0bc27dc40358b30e57decd.tar.gz rockbox-d336eb30f8098f4a8f0bc27dc40358b30e57decd.tar.bz2 rockbox-d336eb30f8098f4a8f0bc27dc40358b30e57decd.tar.xz | |
skin_engine: Automatically create touch regions for skin bars
skin bars now automatically create the touch region the same size
as the bar on touchscreen targets. This means touches will
magically "just work" for reveresed bars (rtl or otherwise).
~5% padding is added on all 4 sides of the region rectangle but
this may need to be tweaked.
Please consider the 'progressbar' and 'volume' touchregion actions
to be deprecated.
Kudos to my new wife for figuring out the bleedingly obvious way to
do this!
Change-Id: I997a7bcaa70fce9885808aae27953c7676e9c2ff
Diffstat (limited to 'manual/appendix')
| -rw-r--r-- | manual/appendix/wps_tags.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index 2d22b73..14e0308 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -676,6 +676,12 @@ display cycling round the defined sublines. See Some tags can be used to display a bar which draws according to the value of the tag. To use these tags like a bar you need to use the following parameters (\%XX should be replaced with the actual tag). + +\opt{touchscreen}{ + Volume and progress bars automatically create touch regions the same size + as the bar (slightly larger actually). This can be disabled with the + \config{notouch} option. +} \begin{tagmap} \config{\%XX(x, y, width, height, [options])} @@ -706,6 +712,9 @@ display cycling round the defined sublines. See ``slider'' option). \item[nobar] -- don't draw the bar or its frame (for use with the ``slider'' option). + \opt{touchscreen}{ + \item[notouch] -- don't create the touchregion for progress/volume bars. + } \end{description} Example: \config{\%pb(0,0,-,-,-,nofill, slider, slider\_image, invert)} -- draw |