Widget.computeTransform

bool computeTransform(gtk.widget.Widget target, out graphene.matrix.Matrix outTransform)

Computes a matrix suitable to describe a transformation from widget's coordinate system into target's coordinate system.

The transform can not be computed in certain cases, for example when widget and target do not share a common ancestor. In that case out_transform gets set to the identity matrix.

To learn more about widget coordinate systems, see the coordinate system overview.

Parameters

targetthe target widget that the matrix will transform to
outTransformlocation to store the final transformation

Returns

true if the transform could be computed, false otherwise