Re: GooCanvas.Group move item



On Wed, 2021-01-13 at 18:10 +0100, Jérôme Lanteri via goocanvas-list
wrote:
Hi,

I have some items who are GooCanvas.CanvasGroup (one for each item to
be 
a shape) contained a GooCanvas.CanvasRect and a GooCanvas.CanvasText.

I see i can rotate or translate the group

1/ how to mirrored the group (on X axe or Y axe or both axes) ?

Unfortunately there is no support for mirroring items. You might be
able to mirror shapes yourself, by doing your own calculations, but I
don't think you'd be able to mirror text.


2/ how to get result of each coordinates points of the final shape
(or 
the Rect) ? (this way i can use contraint test to limit any move to
not collid other item)


Something like goo_canvas_convert_from_item_space() might help here:
https://developer.gnome.org/goocanvas/stable/GooCanvas.html#goo-canvas-convert-from-item-space


Damon



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]