On Wed, May 11, 2011 at 12:44 AM, Mika Laitio <[email protected]> wrote:
> Has anybody implemented polyline evas object where one could specify the
> start point(x, y) and then just add many new points where the line
> should go next. To my understanding there does not exist that kind of
> feature?
>
> If not, would it make sense to implement that kind of polyline as a
> smart object which would internally have an array of lines to draw?
> (new line when ever the direction of graph changes)
>
> My use case for this polyline is XY graph that I started implementing
> as a smart object where one can define tittle, texts for x and y axis,
> axis scale units,  etc... At the moment I am doing the graph curve
> itself by adding multiple line objects, but started to think that things
> like graph resize or delete would be nicer to implement if there would
> be this polyline object which would internally handle the list of lines
> that make the graph.

Did you look at evas polygon object ? It should almost handle your use
case. Only the evas_object_resize isn't defined on it (so the
behaviour could be added/defined without breaking backward
compatibility).

-- 
Cedric BAIL

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to