func doAdd(_data) fvar(p, b, p1, p2) p1 = Point1 p2 = Point2 p = Pen b = Brush if(linked(GraphicsItem)) lng.decl_priv_var(item, 'QGraphicsItem *') end println(linked(GraphicsItem) ? (item + ' = ') : '', G_SCENE, '->addRect(', p1[0], ',', p1[1], ',', p2[0], ',', p2[1], ',', p, ',', b, ');') event(onAdd, _data_) end func GraphicsItem() return(item) end