hi;

On Sun, 2007-11-18 at 10:25 +0100, Arne Caspari wrote:
> Sorry, I attached the wrong file in my last email. Here is the correct
> one. 

thanks. in the future you should probably consider creating a bug on our
Bugzilla product[1] and attaching a diff[2] there. reading diffs is far
easier for us than attaching the whole file.

> 1. 
> I center the Actor around the knot. I have done this because if I
> scale the actor, it gets displaced even if I set GRAVITY_CENTER for
> the scale behaviour. 
>
> You can see what I mean in the 'Courasel' toy: The selected item gets
> scaled up and is this displaced from the center of the circle. 

the problem with scaling happens because scaling also translates the
actor; it's a side-effect[3] that unfortunately is not documented, but
we're also working on fixing it[4].

> 2.
> I added 'width-begin', 'height-begin', 'width-end', 'height-end'
> properties to modify the width and height according to the alpha. 
>
> I found no other way to achieve this effect. 

modify the with and height of the ellipse path or the width and height
of the actor? looking at the code it seems you mean changing the size of
the ellipse.

if you need this kind of behaviour (no pun intended) you should probably
subclass ClutterBehaviour and implement your own Ellipse. we usually
favour this approach, to keep Clutter core as lean as possible.

> Also I noted that the behaviour of
> 'clutter_behaviour_ellipse_set_angle_begin' and
> g_object_set( behaviour_ellipse, "angle-begin" ... ) is different.
> I did not change that because I do not know whether this is by
> intent? 

as far as I can see, it's exactly the same.

ciao,
 Emmanuele.

+++

[1] http://bugzilla.openedhand.com/enter_bug.cgi?product=Clutter
[2] http://svn.o-hand.com/repos/clutter/trunk/clutter/HACKING
[3] the short version is: behaviours that change the actors position
must always be applied last in a stack of behaviours. the scaling
behaviour also changes the actors position to account for the gravity,
hence it must be applied after a path behaviour, like the ellipse.
[4] http://bugzilla.openedhand.com/show_bug.cgi?id=550

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to