Subject: | document and/or fully implement set_transform |
It is unclear how to call the set_transform() method, and my various attempts to set one using array refs and flat arrays of parameters has failed.
Looking at the internals, it would appear that the underlying library needs a CairoMatrix object, but I am also unable to generate one of these.
This is perhaps related to this Stack Overflow question, in which the solution was to call a get method to obtain an object that can then be used.
https://stackoverflow.com/questions/64625955/cairosolidpattern-is-not-of-type-goocanvas2cairopattern
However, get_transform() returns an undef second argument, even when set_transform() has been called to reset the transform, so that approach will not work.
I note that the GooCanvas2 GIO setup has the comment below. Maybe the Gtk perl list can be consulted?
# HANDLE SENTINAL BOOLEAN FOR
# Unsicher bin ich mir bei GooCanvas2::CanvasItem::get_transform
# GooCanvas2::CanvasItem::get_simple_transform ist an sich eine Funktion, die ein
# bool'sches und weitere out-Argumente zurückgibt. Allerdings sind diese nicht NULL
# wenn die Funktion unwahr zurückgibt (sd. bspw. undef, 0, 0, 1, 0). Daher lass ich es raus.
# Das selbe gilt für die entsprechenden Funktionen in CanvasItem (get_transform
# und get_simple_transform)
Thanks,
Shawn.