Translate coordinates relative to src_widget’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.

class Widget
int srcX
int srcY
out int destX
out int destY


destWidget Widget
srcX int

X position relative to src_widget

srcY int

Y position relative to src_widget

destX int

location to store X position relative to dest_widget

destY int

location to store Y position relative to dest_widget

Return Value

Type: bool

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.