Re: on DrawingArea, pixmap and pixbuf
- From: David Eduardo Gomez Noguera <davidgn servidor unam mx>
- To: GTK-list <gtk-list gnome org>
- Subject: Re: on DrawingArea, pixmap and pixbuf
- Date: 20 Apr 2002 14:36:10 -0600
On Sat, 2002-04-20 at 12:38, Nuno Afonso wrote:
>
> > that was right. its weird. it didnt show the message if i do the
> > showwidget after gdk_pixmap_new, without need to realize the widget, but
> > it still needs that i realize it if i pass -1 as depth.
> > why would that be?
>
> GdkPixmap* gdk_pixmap_new (GdkWindow *window,
> gint width,
> gint height,
> gint depth);
>
> Create a new pixmap with a given size and depth.
>
> window : a GdkWindow, used to determine default values for the new
> pixmap. Can be NULL if depth is specified,
> width : The width of the new pixmap in pixels.
> height : The height of the new pixmap in pixels.
> depth : The depth (number of bits per pixel) of the new pixmap. If -1,
> and window is not NULL, the depth of the new pixmap will be equal to
> that of window.
> Returns : the GdkPixmap
>
> http://www.gtk.org/api/
>
> before you ask some questions you should at least try to give a look at
> the GTK+ Specification... as you see if you pass -1 the depth will be
> the same of the window.
>
I always do that.
from the API
struct GdkPixmap
{
gpointer user_data;
};
An opaque structure representing an offscreen drawable. Pointers to
structures of type GdkPixmap, GdkBitmap, and GdkWindow, can often be
used interchangeably. The type GdkDrawable refers generically to any of
these types.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]