Re: Animation with GTK+

2007-09-21 Thread geminitojanus
On 9/12/07, Prokopenko, Konstantyn [EMAIL PROTECTED] wrote:
 Hello,

 I'm totally new to the GUI application development in Linux X11. I was
 mostly involved in embedded non-graphical development.
 Now I need to create GUI interface application using GTK+.
 Could you advise me the best way to create animation of a rotating
 object in GTK window? This object is going to be a picture of a device
 rotating in sync with a real hardware device. Which library/extension I
 can use?

It really depends on the horsepower of your device. If it's got a
little brawn, you can probably do everything you want to do through
Cairo: http://cairographics.org (if your device is using a version of
GTK+ 2.8 or newer). Based on the change of the rotation in your
device, you could have it call the ::expose method on a
GtkDrawingArea, and simply do whatever drawing in Cairo you wish from
there. It's not incredibly powerful, but it's enough for simple
animations and such, and it saves you from having to port over a huge
canvas widget.

If you're using an older version of GTK+, or your hardware doesn't
have hardware floating point, performance might not be so hot through
Cairo though, and you'll want to look at messing with GdkPixbufs.

Hope that gets you started.

 Thank you.

 Regards,
 Konstantyn
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Animation with GTK+

2007-09-12 Thread Prokopenko, Konstantyn
Hello,

I'm totally new to the GUI application development in Linux X11. I was
mostly involved in embedded non-graphical development.
Now I need to create GUI interface application using GTK+. 
Could you advise me the best way to create animation of a rotating
object in GTK window? This object is going to be a picture of a device
rotating in sync with a real hardware device. Which library/extension I
can use?

Thank you.

Regards,
Konstantyn


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Animation with GTK+

2007-09-12 Thread Lance Dillon
If you have an animated gif, you can use GtkImage.  If you need to actually 
sync it with something external, you can use GdkPixbufAnimation and 
GdkPixbufAnimationIter:

http://library.gnome.org/devel/gtk/unstable/GtkImage.html
http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-animation.html


- Original Message 
From: Prokopenko, Konstantyn [EMAIL PROTECTED]
To: gtk-app-devel-list@gnome.org
Sent: Wednesday, September 12, 2007 9:38:18 AM
Subject: Animation with GTK+

Hello,

I'm totally new to the GUI application development in Linux X11. I was
mostly involved in embedded non-graphical development.
Now I need to create GUI interface application using GTK+. 
Could you advise me the best way to create animation of a rotating
object in GTK window? This object is going to be a picture of a device
rotating in sync with a real hardware device. Which library/extension I
can use?

Thank you.

Regards,
Konstantyn


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list