[mythtv-commits] mythtv commit: r20255 by paulh

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Tue Mar 24 16:08:19 UTC 2009


      Author: paulh
        Date: 2009-03-24 16:08:19 +0000 (Tue, 24 Mar 2009)
New Revision: 20255
   Changeset: http://cvs.mythtv.org/trac/changeset/20255

Added:

   trunk/mythtv/libs/libmythui/mythuishape.cpp
   trunk/mythtv/libs/libmythui/mythuishape.h

Modified:

   trunk/mythtv/libs/libmythui/libmythui.pro
   trunk/mythtv/libs/libmythui/xmlparsebase.cpp

Log:

Add a new 'shape' widget using the new painting routines in the painters.

Currently just draws boxes or rounded boxes but other shapes/drawing
primitives could be added as required.

Useful for adding background images to screens for example rather than
having to add new theme images.

Example usage:-

<shape name="box">
    <area>100,200,150,125</area>
    <type>roundbox</type>
    <fill color="#0000ff" alpha="100"></fill>
    <line color="#0000ff" alpha="255" width="5"></line>
    <cornerradius>15</cornerradius>
</shape>





More information about the mythtv-commits mailing list