On 2011-03-23 at 13:47, ekspiulo wrote:
> Hello all,
> 
> I'm planning to write a GTK application containing a big google maps
> style pan & zoom view of a finite and reasonably sized clutter
> stage, and all of the tutorials and such seem to recommend using
> GtkClutterViewport, which makes sense given that a GtkViewport is
> the standard method of viewing something larger than space in the
> UI; however, it looks like this was recently removed. . .
> 
> Is there new pattern for constructing such a veiwport in a gtk &
> clutter application?

the GtkClutterViewport actor was removed because it was not as useful or
as flexible as it looked like.

you can easily implement the same functionality in a custom Actor
sub-class overriding the apply_transform() virtual function, and calling
cogl_matrix_translate() on the passed transformation matrix; the offsets
can come from a MxAdjustment, a GtkAdjustment or two properties bound to
any model.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
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