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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkgc.pre:15:   {    struct object *o;    GdkGC *gc;    GdkGCValues values;    int have_values=0;    struct mapping *m=NULL;    struct svalue *sv;       pgtk2_verify_setup();    pgtk2_verify_not_inited(); -  get_all_args("create",args,"%o.%m",&o,&m); +  get_all_args(NULL,args,"%o.%m",&o,&m);    memset(&values,0,sizeof(values));       if (m!=NULL) {    have_values=1;      #define VALUE(X,Y) \    if ( (sv=simple_mapping_string_lookup(m,#X)) ) { \    values.X=sv->u.integer; \    have_values|=Y; \    }
pike.git/src/post_modules/GTK2/source/gdkgc.pre:123:    f_aggregate_mapping(Pike_sp-osp);   }      void set_foreground(GDK2.Color color)   //! Set the foreground to the specified GDK2.Color.   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("set_foreground",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_foreground(GDK_GC(THIS->obj),get_gdkobject(o,color));    }    RETURN_THIS();   }      void set_background(GDK2.Color color)   //! Set the background to the specified GDK2.Color.   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("set_background",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_background(GDK_GC(THIS->obj),get_gdkobject(o,color));    }    RETURN_THIS();   }      /*   void set_font(GDK22.Font font)   //! Set the font to the specified GDK2.Font.   //! Deprecated: Use Pango.Layout instead.   {    struct object *o; -  get_all_args("set_font",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_font(GDK_GC(THIS->obj),get_gdkobject(o,font));    RETURN_THIS();   }   */      void set_clip_origin(int x, int y)   //! Set the clip mask origin to the specified point.   {    pgtk2_verify_inited();    {    INT_TYPE x,y;    -  get_all_args("set_clip_origin",args,"%i%i",&x,&y); +  get_all_args(NULL,args,"%i%i",&x,&y);    gdk_gc_set_clip_origin(GDK_GC(THIS->obj),x,y);    }    RETURN_THIS();   }      void set_clip_mask(GDK2.Bitmap mask)   //! Set the clip mask to the specified GDK2.Bitmap   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("set_clip_mask",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_clip_mask(GDK_GC(THIS->obj),GDK_DRAWABLE(get_gobject(o)));    }    RETURN_THIS();   }      void set_function(int fun)   //! Set the function to the specified one. One of GDK2.Xor,   //! GDK2.Invert and GDK2.Copy.   {    pgtk2_verify_inited();    {    INT_TYPE a;    -  get_all_args("set_function",args,"%i",&a); +  get_all_args(NULL,args,"%i",&a);    gdk_gc_set_function(GDK_GC(THIS->obj),a);    }    RETURN_THIS();   }      void set_subwindow(int draw_on_subwindows)   //! If set, anything drawn with this GC will draw on subwindows as well   //! as the window in which the drawing is done.   {    pgtk2_verify_inited();    {    INT_TYPE a;    -  get_all_args("set_subwindow",args,"%i",&a); +  get_all_args(NULL,args,"%i",&a);    gdk_gc_set_subwindow(GDK_GC(THIS->obj),a);    }    RETURN_THIS();   }      void set_fill(int fill)   //! Set the fill method to fill.   {    pgtk2_verify_inited();    {    INT_TYPE i;    -  get_all_args("set_fill",args,"%d",&i); +  get_all_args(NULL,args,"%d",&i);    gdk_gc_set_fill(GDK_GC(THIS->obj),i);    }    RETURN_THIS();   }      void set_tile(GDK2.Pixmap tile)   //! Set the background type. Fill must be GDK_TILED   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("set_background",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    if (GDK_IS_PIXMAP(get_gobject(o)))    gdk_gc_set_tile(GDK_GC(THIS->obj),GDK_PIXMAP(get_gobject(o)));    }    RETURN_THIS();   }      void set_stipple(GDK2.Bitmap stipple)   //! Set the background type. Fill must be GDK_STIPPLED or GDK_OPAQUE_STIPPLED.   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("set_stipple",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    if (GDK_IS_DRAWABLE(get_gobject(o)))    gdk_gc_set_stipple(GDK_GC(THIS->obj),GDK_DRAWABLE(get_gobject(o)));    }    RETURN_THIS();   }      void set_ts_origin(int x, int y)   //! Set the origin when using tiles or stipples with the GC. The tile   //! or stipple will be aligned such that the upper left corner of the   //! tile or stipple will coincide with this point.   {    pgtk2_verify_inited();    {    INT_TYPE x,y;    -  get_all_args("set_ts_origin",args,"%i%i",&x,&y); +  get_all_args(NULL,args,"%i%i",&x,&y);    gdk_gc_set_ts_origin(GDK_GC(THIS->obj),x,y);    }    RETURN_THIS();   }      void set_clip_rectangle(?GDK2.Rectangle rect)   //! Sets the clip mask for a graphics context from a rectangle. The   //! clip mask is interpreted relative to the clip origin.   {    pgtk2_verify_inited();    if (args==1) {    struct object *o;    -  get_all_args("set_clip_rectangle",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_clip_rectangle(GDK_GC(THIS->obj),get_gdkobject(o,rectangle));    } else    gdk_gc_set_clip_rectangle(GDK_GC(THIS->obj),NULL);    RETURN_THIS();   }      void set_clip_region(GDK2.Region rect)   //! Sets the clip mask for a graphs context from a region. The   //! clip mask is interpreted relative to the clip origin.   {    pgtk2_verify_inited();    if (args==1) {    struct object *o;    -  get_all_args("set_clip_region",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_set_clip_region(GDK_GC(THIS->obj),get_gdkobject(o,region));    } else    gdk_gc_set_clip_region(GDK_GC(THIS->obj),NULL);    RETURN_THIS();   }      void set_dashes(int offset, array dashes)   //! Sets the way dashed-lines are drawn. Lines will be drawn with   //! alternating on and off segments of the lengths specified in   //! dashes. The manner in which the on and off segments are drawn is   //! determined by the line_style value of the GC.   {    pgtk2_verify_inited();    {    int i;    INT_TYPE o;    struct array *a;    gint8 *list;    -  get_all_args("set_dashes",args,"%d%a",&o,&a); +  get_all_args(NULL,args,"%d%a",&o,&a);    list=xalloc(a->size);    for (i=0; i<a->size; i++)    list[i]=a->item[i].u.integer;       gdk_gc_set_dashes(GDK_GC(THIS->obj),o,list,a->size);    free(list);    }    RETURN_THIS();   }   
pike.git/src/post_modules/GTK2/source/gdkgc.pre:329:    int join_style)   //! Control how lines are drawn.   //! line_style is one of GDK2.LineSolid, GDK2,LineOnOffDash and GDK2.LineDoubleDash.   //! cap_style is one of GDK2.CapNotLast, GDK2.CapButt, GDK2.CapRound and GDK2.CapProjecting.   //! join_style is one of GDK2.JoinMiter, GDK2.JoinRound and GDK2.JoinBevel.   {    pgtk2_verify_inited();    {    INT_TYPE a,b,c,d;    -  get_all_args("set_line_attributes",args,"%d%d%d%d",&a,&b,&c,&d); +  get_all_args(NULL,args,"%d%d%d%d",&a,&b,&c,&d);    gdk_gc_set_line_attributes(GDK_GC(THIS->obj),a,b,c,d);    }    RETURN_THIS();   }      void copy(GDK2.GC source)   //! Copy all attributes from the source GC   {    pgtk2_verify_inited();    {    struct object *o;    -  get_all_args("copy",args,"%o",&o); +  get_all_args(NULL,args,"%o",&o);    gdk_gc_copy(GDK_GC(THIS->obj),GDK_GC(get_gobject(o)));    }    RETURN_THIS();   }      void set_exposures(int exp)   //! Sets whether copying non-visible portions of a drawable using this gc   //! generates exposure events for the corresponding regions of the dest   //! drawable.   {    pgtk2_verify_inited();    {    INT_TYPE a;    -  get_all_args("set_exposures",args,"%i",&a); +  get_all_args(NULL,args,"%i",&a);    gdk_gc_set_exposures(GDK_GC(THIS->obj),a);    }    RETURN_THIS();   }