Widget.translateCoordinates

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

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

More...
class Widget
bool
translateCoordinates
(,
double srcX
,
double srcY
,
out double destX
,
out double destY
)

Parameters

destWidget gtk.widget.Widget
srcX double

X position relative to src_widget

srcY double

Y position relative to src_widget

destX double

location to store X position relative to dest_widget

destY double

location to store Y position relative to dest_widget

Return Value

Type: bool

false if src_widget and dest_widget have no common ancestor. In this case, 0 is stored in *dest_x and *dest_y. Otherwise true.

Detailed Description

Deprecated: Use gtk.widget.Widget.computePoint instead