Re: Generic positioning



On Fri, 2008-10-31 at 10:26 +0000, Damon Chaplin wrote:
> On Wed, 2008-10-29 at 16:06 +0100, Armin Burgmeier wrote:
> > On Wed, 2008-10-29 at 12:37 +0000, Damon Chaplin wrote:

> > > For GooCanvasGroup I'd prefer it if the x & y properties set the origin
> > > of the existing transformation matrix rather than adding an extra
> > > translation.
> > 
> > Wouldn't this make it impossible to get back the x and y properties in
> > get_property() then? I mean, if the group is translated via
> > goo_canvas_item_translate, then this should not add up to the x & y
> > properties (to behave the same was as GooCanvasRect, for example),
> > should it?
> 
> The group has no real x & y properties, so we are basically just
> modifying its transformation matrix anyway.
> 
> I thought it would be better if we made that clear, rather than try to
> explain that the x & y properties are an extra translation applied after
> the group's transformation matrix.

Actually thinking about it some more I've changed my mind. You can leave
the x & y as they are.

It does keep it more consistent with other items, which all have a
transformation plus x & y properties.

Damon




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