Skip to content
Browse files

MythUI: Allow relative offsets within an <area>

Allow area's to be specified with relative offsets based on a percentage
within the parents area.  For example, to define a 40x20 area in the lower
right corner:

<area>100%-40, 100%-20, 40, 20</area>
<area>100%-40, 100%-20, 100%, 100%</area>

To position arrows on the left edge, but vertically centered, you might want to do something like:

<!-- top arrow -->
<position>0, 50%-10</area>
<!-- bottom arrow -->
<position>0, 50%</area>
  • Loading branch information
jpoet committed Jul 23, 2011
1 parent e3e7a76 commit 50770861637411a2a1e1818bdc6e9c1ff25878cf
Showing with 234 additions and 81 deletions.
  1. +212 −78 mythtv/libs/libmythui/mythrect.cpp
  2. +14 −2 mythtv/libs/libmythui/mythrect.h
  3. +8 −1 mythtv/libs/libmythui/mythuitype.cpp

0 comments on commit 5077086

Please sign in to comment.
You can’t perform that action at this time.