get_y
Description:
Retrieves the Y coordinate of a Actor.
This function tries to "do what you mean", by returning the correct value depending on the actor's state.
If the actor has a valid allocation, this function will return the Y coordinate of the origin of the allocation box.
If the actor has any fixed coordinate set using set_y, set_position or set_geometry, this function will return that coordinate.
If both the allocation and a fixed position are missing, this function will return 0.
Parameters:
this |
A Actor |
Returns:
the Y coordinate, in pixels, ignoring any transformation (i.e. scaling, rotation) |