]> git.cworth.org Git - wordgame/blobdiff - demo-item.h
Fix randomizing of letter positions to never end up on top of each other
[wordgame] / demo-item.h
index d7dc396dd3a0a12d9071808d81f5d2c9d6e58834..180b599f98a857b2cdf1e0d2adc5e21870e4c7c1 100644 (file)
@@ -26,7 +26,7 @@ struct _GooDemoItem
 {
     GooCanvasItemSimple parent_object;
 
-    gdouble x, y, width, height;
+    double size;
     char letter;
 };
 
@@ -40,10 +40,15 @@ 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);
+
 G_END_DECLS
 
 #endif /* __GOO_DEMO_ITEM_H__ */