Attached is a fairly small and simple patch to evas for
adding "rounded rectangles".  This is just on top of the usual
evas rectangle object.

        The new api calls are just:

evas_object_rectangle_rounded_set(obj, Evas_Coord rx, Evas_Coord ry,
Evas_Bool tl, Evas_Bool tr, Evas_Bool bl, Evas_Bool br);

and a similar 'get' function.

        The 'rx', 'ry' vars are for setting the amount of rounding
desired - one will get circular rounding setting rx = ry, ow. one'll
get elliptical rounding of the corners.
        The 'tl', 'tr', 'bl', 'br' vars are for choosing which of the
four corners to round or not, ie. topl-left, top-right, etc.


        Only the software based engines have this right now, and
it's just something to play with.. if you're so inclined.

        Again, this has NOT been tested! But if you feel brave,
feel free to do with as you wish :)


        jose.

Attachment: evas_rect.diff.gz
Description: Binary data

Reply via email to