On Tue, 2008-11-04 at 11:51 +0100, Leonard Ritter wrote:
> On Tue, Nov 4, 2008 at 9:41 AM, Pierre-Luc Beaudoin
> <[EMAIL PROTECTED]> wrote:
>         On Tue, 2008-11-04 at 08:11 +0100, Leonard Ritter wrote:
>         > i currently struggle with implementing zooming and panning,
>         which i
>         > need to allow myself to browse through the song and its
>         controls
>         > quickly.
>         
>         
>         I suggest you have a look at tidy, they have TidyViewport and
>         TidyFingerScroll which I used to implement the panning in
>         libchamplain.
>         Very convenient and has built-in nice behaviors.
> 
> i am using python-clutter, and the tidy bindings are currently
> excluded from 0.8.2, so that's impossible to do for me right now.

most of tidy is implementable in pure python. I removed the tidy python
bindings because they were not compiled by default and because tidy is a
moving target. pytidy will return later, as a separate module, maybe
using gobject-introspection to cut down the pain of keeping everything
in sync.

TidyViewport is just a wrapper around the cogl_translate() function,
which is wrapped in pyclutter as clutter.cogl.translate(x,y,z). I
suggest you also have a look at GtkClutterViewport in clutter-gtk trunk
on how to use GtkAdjustments with cogl_translate() and a ClutterActor.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Intel Open Source Technology Center

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

Reply via email to