translate_coordinates


Description:

public bool translate_coordinates (Widget dest_widget, int src_x, int src_y, out int dest_x, out int dest_y)

Translate coordinates relative to this’s allocation to coordinates relative to dest_widget ’s allocations.

In order to perform this operation, both widgets must be realized, and must share a common toplevel.

Parameters:

this

a Widget

dest_widget

a Widget

src_x

X position relative to this

src_y

Y position relative to this

dest_x

location to store X position relative to dest_widget

dest_y

location to store Y position relative to dest_widget

Returns:

false if either widget was not realized, or there was no common ancestor. In this case, nothing is stored in *dest_x and *dest_y. Otherwise true.




2022 vala-language.org