X-Git-Url: https://git.cworth.org/git?p=wordgame;a=blobdiff_plain;f=demo-item.h;h=e53221dcdf86f9312f1b6c80a5afdbe7707ffefa;hp=79188589297dec37b0a1f757d9e893aeb54eb7eb;hb=HEAD;hpb=bcb2db8e93ce94b662e7118b92230c6eb749ee22 diff --git a/demo-item.h b/demo-item.h index 7918858..e53221d 100644 --- a/demo-item.h +++ b/demo-item.h @@ -22,12 +22,13 @@ G_BEGIN_DECLS typedef struct _GooDemoItem GooDemoItem; typedef struct _GooDemoItemClass GooDemoItemClass; -typedef void (*GooDemoItemPaintFunc) (cairo_t *cr, void *); +typedef void (*GooDemoItemPaintFunc) (cairo_t *cr, void *, double width, double height); struct _GooDemoItem { GooCanvasItemSimple parent_object; - double size; + double width; + double height; GooDemoItemPaintFunc paint; void *closure; }; @@ -40,7 +41,10 @@ struct _GooDemoItemClass GType goo_demo_item_get_type (void) G_GNUC_CONST; GooCanvasItem* goo_demo_item_new (GooCanvasItem *parent, - gdouble size, + gdouble x, + gdouble y, + gdouble width, + gdouble height, GooDemoItemPaintFunc paint, void *closure, ...);