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;
};
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,
...);