translate_coordinates


Description:

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

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

In order to perform this operation, both widget must share a common ancestor.

Parameters:

this

a `GtkWidget`

dest_widget

a `GtkWidget`

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 this and dest_widget have no common ancestor. In this case, 0 is stored in *dest_x and *dest_y. Otherwise true .




2022 vala-language.org