Re: [gtkmm] Pixbuf problems
- From: Ole Laursen <olau hardworking dk>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] Pixbuf problems
- Date: 15 Sep 2002 22:57:58 +0200
"Saravanan" <psaravanan 7hillsys com> writes:
> I am a beginner using gtkmm for application development. I
> would like to use the pixbuf animation functionality from gdk-pixbuf
> in my application.
[...]
> e) Now how do I display this in my Gtk::Window widget ... there are
> methods to display the pixbuf on a drawable ... but how do I get
> this from my Gtk::Widows widget ?
First, I'm going to assume you're using Gtkmm 2; with Gtkmm 2 it's
very easy. You just use the wrapped pixbuf functionality from the Gdk
namespace (this will give you a Glib::RefPtr<Gdk::Pixbuf>), put a
Gtk::Image inside your window, and use the set method of the image to
set the pixbuf. You can even put the whole animation directly into the
image if that's what you want.
All clear?
--
Ole Laursen
http://sunsite.dk/olau/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]