Peter wrote:
> Jose Gonzalez schrieb:
>> (4) Extensions to the current rectangle obj api:
>> *******************************************
>>
>> void evas_object_rectangle_corner_radius_set(obj, float r);
>> void evas_object_rectangle_corner_style_set(obj, int corner_style);
>>
>> Where 'corner_style' can be one of EVAS_CORNER_ROUND or
>> EVAS_CORNER_BEVEL.
>>
>>
>> void evas_object_rectangle_corners_set(obj, Evas_Bool tl, Evas_Bool
>> tr,
>> Evas_Bool bl, Evas_Bool
>> br);
>>
>> The corners to apply the style to, or leave squared off (default).
>>
>> Rectangles can be filled and/or stroked, but the stroking will
>> be defined
>> to increase inward - though one could also add an api for deciding
>> whether to have
>> it centered on the rect, or increase inward or outward.
>>
>
> I'm not familiar with evas internals, but maybe it'd be possible to
> have an evas_object_ellipse. I had several demands on irq for that.
> And if corners for rectangles are possible circles or ellipses
> shouldn't be much tougher than that, probably easier.
>
With the particular api I proposed here for rounded rect corners, one
gets circles as a particular case (when the corner radius is >= the half the
rect size). One could get ellipses too by modifying the api slightly to be
of the form:
void evas_object_rectangle_corner_radii_set(obj, float rx, float ry);
So, keep looking, thinking, contrast and compare with others, etc..
and suggesting improvements. :)
____________________________________________________________
Compare Cell Phone Carriers- Click Now.
http://thirdpartyoffers.juno.com/TGL2141/fc/Ioyw6i3oHH6UoBr8w1J7mUKmnlVzsmpCQgIxdUFjQeg0uDr5WmAOMQ/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel