Re: [gtk-list] Re: double buffering question



Amit Kumar wrote:
> hmmm... but the pixmaps A and B are different: A is GdkPixmap, and B
> is GtkPixmap, right? is there any way of having B a GdkPixmap too?

 Sorry. I didn't understand what you said.

> i guess one way is to create a blank GdkPixmap, and draw A on
> it. which brings me to my second question: how do you find the size of
> a pixmap, if all you have is a GdkPixmap *?
> i'm guessing you can put it in a window, and try to find the size of
> the window.. but, er, is there any better way? <grin>

>From gtkpixmap.c:

 gdk_window_get_size (pixmap->pixmap, &width, &height);

Where pixmap->pixmap is a GdkPixmap* and width and height
are
gint.

--
Pedro Medeiros



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]