Re: GtkWidget->window



Michèle Garoche wrote:

Le vendredi, 8 aoû 2003, à 07:55 Europe/Paris, Russell Shaw a écrit :

In the function below, GtkWidget has a member "window".
I can't find this member anywhere in the online help:
  http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html

If you read carefully the line:

pixmap = gdk_pixmap_new (widget->window,...

you'll see pixmap is a GDK... object, so the API is described in GDK reference manual, here:

<http://developer.gnome.org/doc/API/gdk/gdk-bitmaps-and-pixmaps.html>

Hi,

I found the answer is in: /usr/include/gtk-2.0/gtk/gtkwidget.h

struct _GtkWidget
{
  GtkObject object;
...

 /* The widgets window or its parent window if it does
   *  not have a window. (Which will be indicated by the
   *  GTK_NO_WINDOW flag being set).
   */
  GdkWindow *window;

  /* The widgets parent.
   */
  GtkWidget *parent;
};

I don't think the documentation system likes underscores: _GtkWidget




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