It uses a custom container built using a GtkFixed inside of a subclass GtkViewport (that handles all the positioning and size request/allocation junk).
The GtkContainer child properties (X,Y) of the GtkFixed are animated using a clutter-like animation tweener I wrote.
they are far from perfect .. its pretty heavy on cpu during the animation since you really need to do about 30 fps to look somewhat smooth (well some multiple of vert refresh).
Comments (6)
Hi there, nice animations! Just curios how have you done the animation in the first video? is it a pane?
thanks bye
It uses a custom container built using a GtkFixed inside of a subclass GtkViewport (that handles all the positioning and size request/allocation junk).
The GtkContainer child properties (X,Y) of the GtkFixed are animated using a clutter-like animation tweener I wrote.
Really nice….
pfeh – funny seeing animations landing in Gtk+ apps. Can you say something about the performance of those animations? CPU consumption …
they are far from perfect .. its pretty heavy on cpu during the animation since you really need to do about 30 fps to look somewhat smooth (well some multiple of vert refresh).
Very swish indeed, the animations appear nice and fluid