Widget.computeTransform

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

class Widget
bool
computeTransform

Parameters

target Widget

the target widget that the matrix will transform to

outTransform Matrix

location to store the final transformation

Return Value

Type: bool

%TRUE if the transform could be computed, %FALSE otherwise. 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.

Meta