typedef struct _GooDemoItem GooDemoItem;
typedef struct _GooDemoItemClass GooDemoItemClass;
+typedef void (*GooDemoItemPaintFunc) (cairo_t *cr, void *);
+
struct _GooDemoItem
{
GooCanvasItemSimple parent_object;
-
double size;
- char letter;
+ GooDemoItemPaintFunc paint;
+ void *closure;
};
struct _GooDemoItemClass
GType goo_demo_item_get_type (void) G_GNUC_CONST;
-GooCanvasItem* goo_demo_item_new (GooCanvasItem *parent,
- gdouble x,
- gdouble y,
- gdouble size,
- char letter,
+GooCanvasItem* goo_demo_item_new (GooCanvasItem *parent,
+ gdouble size,
+ GooDemoItemPaintFunc paint,
+ void *closure,
...);
-void
-goo_demo_item_move_to (GooCanvasItem *item,
- gdouble x,
- gdouble y);
-
-void
-goo_demo_item_glide_to (GooCanvasItem *item,
- gdouble x,
- gdouble y);
-
G_END_DECLS
#endif /* __GOO_DEMO_ITEM_H__ */