skin_engine: Automatically create touch regions for skin bars
commitd336eb30f8098f4a8f0bc27dc40358b30e57decd
authorJonathan Gordon <rockbox@jdgordon.info>
Sun, 24 Jun 2012 11:52:18 +0000 (24 21:52 +1000)
committerJonathan Gordon <rockbox@jdgordon.info>
Thu, 5 Jul 2012 01:15:16 +0000 (5 11:15 +1000)
tree93d840e7096edf21469f6b4110ae7f49cab09c90
parent3d0459dfadf0071112cd8406b9c210123b667e03
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
apps/gui/skin_engine/skin_parser.c
apps/gui/skin_engine/skin_touchsupport.c
apps/gui/skin_engine/wps_internals.h
manual/appendix/wps_tags.tex
wps/cabbiev2.240x320x16.mini2440.wps
wps/cabbiev2.240x400x16.wps
wps/cabbiev2.320x240x16.mrobe500.wps
wps/cabbiev2.320x480x16.wps
wps/cabbiev2.800x480x16.wps