On Thu, 2010-06-24 at 19:46 +0200, donn wrote:
> On 24/06/2010 16:13, Emmanuele Bassi wrote:
> > use the set_anchor_point() method of clutter.Actor - but be aware of its
> > caveats.
> I have been using it, but it seems to do half the job. Is there any way 
> to transform the space within in Actor so that I get a classic 
> coordinate axis with 0,0 in the middle?

the actor's coordinate space is always relative to the parent's
reference point; this is usually the top-left corner but it can be moved
using the anchor point API.

> (Such that when I add other Actors, or draw with Cairo, they obey that 
> transform.)

Cairo drawing has nothing to do with Clutter: you have to change the
Cairo transformations with the Cairo API.

> I am probably not making myself clear, this comes from my general 
> mathematical muddle, sorry.

no, I think the "muddle" is not mathematical - it's just a terminology
issue.

the documentation for ClutterActor explains the coordinate space and
some terminology, plus the order of transformations applied when
painting:

http://docs.clutter-project.org/docs/clutter/stable/ClutterActor.html

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Open Source Software Engineer
Intel Open Source Technology Center

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to