Window.getRootCoords

Obtains the position of a window position in root window coordinates. This is similar to gdk_window_get_origin() but allows you to pass in any position in the window, not just the origin.

class Window
void
getRootCoords
(
int x
,
int y
,
out int rootX
,
out int rootY
)

Parameters

x int

X coordinate in window

y int

Y coordinate in window

rootX int

return location for X coordinate

rootY int

return location for Y coordinate

Meta

Since

2.18