get_allocation_vertices


Description:

[ Version ( since = "0.6" ) ]
public void get_allocation_vertices (Actor? ancestor, Vertex[] verts)

Calculates the transformed coordinates of the four corners of the actor in the plane of ancestor.

The returned vertices relate to the ActorBox coordinates as follows:

- verts[0] contains (x1, y1) - verts[1] contains (x2, y1) - verts[2] contains (x1, y2) - verts[3] contains (x2, y2)

If ancestor is null the ancestor will be the Stage. In this case, the coordinates returned will be the coordinates on the stage before the projection is applied. This is different from the behaviour of get_abs_allocation_vertices.

Parameters:

this

A Actor

ancestor

A Actor to calculate the vertices against, or null to use the Stage

verts

return location for an array of 4 Vertex in which to store the result




2022 vala-language.org