X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=demo-item.h;h=8cc4712b512e20c100e6b8218bd98556b9e28a2f;hb=ec58ce1cd1f8effe49f12485f65c345d75767dd5;hp=d7dc396dd3a0a12d9071808d81f5d2c9d6e58834;hpb=1478e50ab9b22ef50fb0a1be0d77a5f532eb7bd8;p=wordgame diff --git a/demo-item.h b/demo-item.h index d7dc396..8cc4712 100644 --- a/demo-item.h +++ b/demo-item.h @@ -26,7 +26,7 @@ struct _GooDemoItem { GooCanvasItemSimple parent_object; - gdouble x, y, width, height; + double size; char letter; }; @@ -40,10 +40,20 @@ GType goo_demo_item_get_type (void) G_GNUC_CONST; GooCanvasItem* goo_demo_item_new (GooCanvasItem *parent, gdouble x, gdouble y, - gdouble width, - gdouble height, + gdouble size, char letter, ...); + +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__ */