[cairo] Re: Goocanvas:
absolute-position animation and "update" confusion
cworth at cworth.org
Tue Dec 5 08:13:58 PST 2006
On Tue, 05 Dec 2006 07:35:18 -0800, Carl Worth wrote:
> Maybe all that I'm missing is a goo_canvas_item_set_position or so,
> (something like canvas_item_translate but with an absolute position
> instead of an offset).
Another reason I would want this is if I do ever want to implement
something fancy like "animate along a path" then I'll need
"set_position" primitive I can build on to implement that. It would
not be pleasant at all if I had to totally re-vamp the way my object
works, (eg. using private x,y values and using those in "paint" rather
than doing a zero-based paint and trusting the matrix to do the
positioning), just to extend the way I animate for example.
That is, it would be nice if a single model could be used by both
simple applications and applications with more complex needs. That way
there's a smooth way for applications to "grow up".
To me it seems like something like "set_position" would do this just
fine, (but I'm still not sure if I have a grasp of the intended model
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061205/dbb27e3a/attachment.pgp
More information about the cairo