]> git.cworth.org Git - wordgame/blobdiff - demo-item.h
Increase the window size a bit
[wordgame] / demo-item.h
index 79188589297dec37b0a1f757d9e893aeb54eb7eb..e53221dcdf86f9312f1b6c80a5afdbe7707ffefa 100644 (file)
@@ -22,12 +22,13 @@ G_BEGIN_DECLS
 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;
 };
@@ -40,7 +41,10 @@ struct _GooDemoItemClass
 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,
                                             ...);