Matthew Allum wrote: > Hi; > > I cant really comment as I really know little about deeper layout > workings and how they should be. What I can say though is we tried to > add layouts to clutter but when you throw in all the translations and 3D > space and the kind of 'freeform' nature of Clutter we reached the > conclusion it was pretty much impossible to come up with some totally > generic that would cover all cases (at least that was sane API wise). > Therefor we decided to at least provide enough hooks in Clutter to make > it easy for layouts (and policy) to be implemented outside of Clutter > for a specific use case - we've kind of started doing this in Tidy for > example, and for this kind of thing its probably worth sending patches > there. > > It would be nice however to have some very simple layout stuff in > clutter itself (maybe) > > On Wed, 2008-02-13 at 09:27 -0500, Havoc Pennington wrote: >> Another thought related to this, it seems that get_size() combined >> with set_scale() already somewhat implements a "transient allocation"; >> because get_size() and query_coords() ignore any scaling. I _believe_ >> this is true even for group bounds; if I scale everything inside a >> group, the group's bounding box is still based on the unscaled child >> sizes (right? am I reading that code correctly?) >> > > This sounds like a bug - will look into it.
That is by design; the get_size() functions always return untransformed sizes; the get_abs_size () return size as they end up on the screen, so get_abs_size () should return the absolute size of the group as projected on screen, but I suspect it might be broken, just projecting the group bounding box calculated by query_coords(), which is not the actual bounding box of the group if the actors in it are transformed. We probably need another function here alongside the get_size() and get_abs_size () that will calculate the actual bounding box of the group taking into account the transformations applied to the actors. Tomas -- To unsubscribe send a mail to [EMAIL PROTECTED]
