Re: GNOME libraries 2.xx road map




Hello

What about following tree of GnomeCanvasItems:

GnomeCanvasItem->GCShape+->GCLine
                        +->GCPolygon
                        +->GCRect
                        +->GCEllipse
etc.

Something similar is implemented in sodipodi. Shape knows all about
filling and stroking arbitrary bezier paths. Line...Ellipse are simply
convenience ways of creating and modifying underlying shape.
It will reduce a bit of code (no stroking, rendering etc. in level 3
objects), reduce the possible bugs and will make implementing new objects
(stars, spirals, text-balloons etc.) much simpler.

Lauris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]