Method

Gtk.Widget.compute_transform

Declaration [src]

gboolean
gtk_widget_compute_transform (
  GtkWidget* widget,
  GtkWidget* target,
  graphene_matrix_t* out_transform
)

Description [src]

Computes a matrix suitable to describe a transformation from widgets coordinate system into targets coordinate system.

Parameters

target GtkWidget
 

the target widget that the matrix will transform to

 Ownership is not transferred to the callee
out_transform graphene_matrix_t*
 

location to store the final transformation

 Direction: out
 Ownership is not transferred to the callee

Return value

Returns: gboolean

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.