Hi all,

Not sure if this has been answered before, and I couldn't find anything in
my searches.

I'm using python-clutter, and I'm implementing a zoomable-scroll area using
nested Group containers.

Like this:

viewArea = clutter.Group()
container = clutter.Group()
viewArea.add(container)

I'm nesting them, so that the top level group doesn't move, and receives
all the mouse events, and it moves / scales the "container" inside.

I've hit a slight problem though. When scaling the "container", I want the
user to have the area the mouse is under remain in the center of the zoom.
I can use set_scale_full() and calculate the center coordinates relative to
"viewArea" but these values don't work it the container is already scaled.

Is there a way to get the relative position of an actor when it's already
scaled?

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

Reply via email to