X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=demo-item.c;h=0c8fc8476c5ff4ca26e80554472cc5a4cada8792;hb=ec58ce1cd1f8effe49f12485f65c345d75767dd5;hp=e34eb4c53d53df39f3982d8554959c2d7db72fe3;hpb=27fa9d9abfa5f58f70258f0d671ab1cb133a68ce;p=wordgame diff --git a/demo-item.c b/demo-item.c index e34eb4c..0c8fc84 100644 --- a/demo-item.c +++ b/demo-item.c @@ -32,6 +32,17 @@ goo_demo_item_move_to (GooCanvasItem *item, goo_canvas_item_set_transform (item, &matrix); } +void +goo_demo_item_glide_to (GooCanvasItem *item, + gdouble x, + gdouble y) +{ + goo_canvas_item_animate (item, x, y, + 1.0, 0, + 500, 40, + GOO_CANVAS_ANIMATE_FREEZE); +} + /* The convenience function to create new items. This should start with a parent argument and end with a variable list of object properties to fit in with the standard canvas items. */