Method

GdkWindowget_root_coords

since: 2.18

Declaration [src]

void
gdk_window_get_root_coords (
  GdkWindow* window,
  gint x,
  gint y,
  gint* root_x,
  gint* root_y
)

Description [src]

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.

Available since: 2.18

Parameters

x

Type: gint

X coordinate in window.

y

Type: gint

Y coordinate in window.

root_x

Type: gint*

Return location for X coordinate.

The argument will be set by the function.
root_y

Type: gint*

Return location for Y coordinate.

The argument will be set by the function.