From: Romain Janvier <[email protected]> > For archeological purpose, i'm trying to implement a kind of vectorial > drawing tool with clutter. > In my clutter's stage i have a clutterGroup (my viewport) which > contain a photo. I can add some "points" (a custom clutterActor) to > this Cluttergroup (the viewport). The problem came when I tried to > implement zoom. > I want to zoom in/out the photo but not the "points" which must have a > constant size and a constant position relative to the photo. > > I've tried two things but I've got some issues with both > -scaling the clutterGroup : the relative position is ok, but the > -"points" are resized too (the transormed size change) > -scaling ONLY the photo : the points' size is ok, but now the relative > -position change. > > Could you please tell me what's the best way to implement this kind of > zoom ?
Gnome shell has a built-in magnification (zoom) support. You could check the code on GNOME Shell and check if it is useful for your [1]. There is also a page related to the magnification [2], but is more about the configuration of this feature. BR [1] http://git.gnome.org/browse/gnome-shell/tree/js/ui/magnifier.js [2] http://live.gnome.org/GnomeShell/Magnification === API ([email protected]) _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
