pike.git / src / post_modules / GTK2 / source / gdkwindow.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkwindow.pre:8:      void create(GDK2.Window|int parent, mapping|void attributes)   //! Not for non-experts. I promise.   {    pgtk2_verify_setup();    pgtk2_verify_not_inited();    if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT)    {    GdkWindow *w;    INT_TYPE id; -  get_all_args("create",args,"%i",&id); +  get_all_args(NULL,args,"%i",&id);    w=gdk_window_foreign_new(id);    THIS->obj=G_OBJECT(w);    if (!THIS->obj)    Pike_error("The window with id 0x%x does not exist\n",id);    } else if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *parent;    struct mapping *m;    GdkWindowAttr attrs;    GdkWindow *w;    long mask=0;    memset(&attrs,0,sizeof(attrs)); -  get_all_args("create",args,"%o%m",&parent,&m); +  get_all_args(NULL,args,"%o%m",&parent,&m);      #define GET_ARG(x,y,z) pgtk2_get_mapping_arg( m, #x, y, z, &attrs.x, &mask, sizeof(attrs.x))       GET_ARG(title, PIKE_T_STRING, GDK_WA_TITLE);    GET_ARG(x, PIKE_T_INT, GDK_WA_X);    GET_ARG(y, PIKE_T_INT, GDK_WA_Y);    GET_ARG(width, PIKE_T_INT, 0);    GET_ARG(height, PIKE_T_INT, 0);    GET_ARG(window_type, PIKE_T_INT, 0);    GET_ARG(wmclass_name, PIKE_T_STRING, 0);
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:139:   //! CURS(GDK2.Umbrella)   //! CURS(GDK2.UrAngle)   //! CURS(GDK2.Watch)   //! CURS(GDK2.Xterm)   //! </table>   {    GdkCursor *c;    static GdkCursor *font_cursors[256];    INT_TYPE i;    -  get_all_args("set_cursor",args,"%i",&i); +  get_all_args(NULL,args,"%i",&i);       if (i>255)    Pike_error("No such cursor\n");       if (font_cursors[i])    c=font_cursors[i];    else    c=font_cursors[i]=gdk_cursor_new(i);    gdk_window_set_cursor(GDK_WINDOW(THIS->obj),c);   
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:161:   }      void set_bitmap_cursor(GDK2.Bitmap image, GDK2.Bitmap mask,    GDK2.Color fg, GDK2.Color bg,    int xhot, int yhot)   //! xhot,yhot are the locations of the x and y hotspot relative to the   //! upper left corner of the cursor image.   {    struct object *s,*m,*fg,*bg;    INT_TYPE xh,yh; -  get_all_args("set_bitmap_cursor",args,"%o%o%o%o%i%i", +  get_all_args(NULL,args,"%o%o%o%o%i%i",    &s,&m,&fg,&bg,&xh,&yh);    gdk_window_set_cursor(GDK_WINDOW(THIS->obj),    gdk_cursor_new_from_pixmap(GDK_PIXMAP(get_gobject(s)),    GDK_PIXMAP(get_gobject(m)),    get_gdkobject(fg,color),    get_gdkobject(bg,color),    xh,yh));    RETURN_THIS();   }      void shape_combine_mask(GDK2.Bitmap mask, int xoffset, int yoffset)   //! Set the shape of the widget, or, rather, it's window, to that of   //! the supplied bitmap.   {    struct object *m;    INT_TYPE x,y; -  get_all_args("shape_combine",args,"%o%i%i",&m,&x,&y); +  get_all_args(NULL,args,"%o%i%i",&m,&x,&y);    gdk_window_shape_combine_mask(GDK_WINDOW(THIS->obj),    get_gdkobject(m,bitmap),x,y);    RETURN_THIS();   }      array(GDK2.Window) children()   //! Returns an array of GDK2.Window objects.   {    GList *gl,*g2;    int n=0;
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:238:   //! GDK2.LeaveNotifyMask,   //! GDK2.FocusChangeMask,   //! GDK2.StructureMask,   //! GDK2.PropertyChangeMask,   //! GDK2.VisibilityNotifyMask,   //! GDK2.ProximityInMask,   //! GDK2.ProximityOutMask and   //! GDK2.AllEventsMask   {    INT_TYPE a; -  get_all_args("set_events",args,"%i",&a); +  get_all_args(NULL,args,"%i",&a);    gdk_window_set_events(GDK_WINDOW(THIS->obj),a);    RETURN_THIS();   }      void set_icon(GDK2.Pixmap pixmap, GDK2.Bitmap mask, GDK2.Window|void window)   //! Set the icon to the specified image (with mask) or the specified   //! GDK2.Window. It is up to the window manager to display the icon.   //! Most window manager handles window and pixmap icons, but only a few   //! can handle the mask argument. If you want a shaped icon, the only   //! safe bet is a shaped window.
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:278:    }    gdk_window_set_icon(GDK_WINDOW(THIS->obj),w,p,m);    RETURN_THIS();   }         void set_icon_name(string name)   //! Set the icon name to the specified string.   {    gchar *t; -  get_all_args("set_icon_name",args,"%s",&t); +  get_all_args(NULL,args,"%s",&t);    gdk_window_set_icon_name(GDK_WINDOW(THIS->obj),t);    RETURN_THIS();   }      void raise()   //! Raise this window if the window manager allows that.   {    gdk_window_raise(GDK_WINDOW(THIS->obj));    RETURN_THIS();   }      void move_resize(int x, int y, int w, int h)   //! Move and resize the window in one call.   {    INT_TYPE x,y,w,h; -  get_all_args("move_resize",args,"%i%i%i%i",&x,&y,&w,&h); +  get_all_args(NULL,args,"%i%i%i%i",&x,&y,&w,&h);    gdk_window_move_resize(GDK_WINDOW(THIS->obj),x,y,w,h);    RETURN_THIS();   }      mapping(string:int) get_geometry()   //! Returns ([ "x":xpos, "y":ypos, "width":width, "height":height, "depth":bits_per_pixel ])   {    gint x,y,w,h,d;    gdk_window_get_geometry(GDK_WINDOW(THIS->obj),&x,&y,&w,&h,&d);    pgtk2_pop_n_elems(args);
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:348:   //! &nbsp; if(sizeof(maybe))   //! &nbsp; root=GDK2.Window( maybe[0]->data[0] );   //! </pre></p>   {    guchar *retdata;    GdkAtom actual_property_type;    int actual_format_type,actual_length;    struct object *o;    INT_TYPE offset=0;    INT_TYPE delete_when_done=0; -  get_all_args("get_property",args,"%o.%i%i",&o,&offset,&delete_when_done); +  get_all_args(NULL,args,"%o.%i%i",&o,&offset,&delete_when_done);       if (gdk_property_get(GDK_WINDOW(THIS->obj),    get_gdkatom(o),   #ifdef AnyPropertyType    AnyPropertyType,   #else    GDK_NONE,   #endif    offset,    1024*1024*1024,
pike.git/src/post_modules/GTK2/source/gdkwindow.pre:400:    pgtk2_pop_n_elems(args);    push_int(0);   }      void change_property(GDK2.Atom property, GDK2.Atom type, int mode, string data)   //! mode is one of CONST(GDK_PROP_MODE)   {    struct object *o,*t;    struct pike_string *s;    INT_TYPE m; -  get_all_args("change_property",args,"%o%o%i%W",&o,&t,&m,&s); +  get_all_args(NULL,args,"%o%o%i%W",&o,&t,&m,&s);       gdk_property_change(GDK_WINDOW(THIS->obj),get_gdkatom(o),    get_gdkatom(t),8<<s->size_shift,    m,(unsigned char *)s->str,    s->len);       RETURN_THIS();   }      void delete_property(GDK2.Atom a)   //! Delete a property.   {    struct object *o; -  get_all_args("delete_property",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_property_delete(GDK_WINDOW(THIS->obj),get_gdkatom(o));    RETURN_THIS();   }      void set_background(GDK2.Color|GDK2.Pixmap to)   //! Set the background color or image.   //! The argument is either a GDK2.Pixmap or a GDK2.Color object.   {    struct object *o; -  get_all_args("set_background",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);      /* gdk_error_trap_push(); */    if (!o)    gdk_window_set_back_pixmap(GDK_WINDOW(THIS->obj),NULL,1);    if (get_pg2object(o,pgdk2_pixmap_program))    gdk_window_set_back_pixmap(GDK_WINDOW(THIS->obj),    GDK_PIXMAP(get_gobject(o)),0);    else if (get_pg2object(o,pgdk2_window_program))    gdk_window_set_back_pixmap(GDK_WINDOW(THIS->obj),    GDK_WINDOW(get_gobject(o)),0);