Method

GdkWindowget_position

Declaration [src]

void
gdk_window_get_position (
  GdkWindow* window,
  gint* x,
  gint* y
)

Description [src]

Obtains the position of the window as reported in the most-recently-processed GdkEventConfigure. Contrast with gdk_window_get_geometry() which queries the X server for the current window position, regardless of which events have been received or processed.

The position coordinates are relative to the window’s parent window.

Parameters

x

Type: gint*

X coordinate of window.

The argument will be set by the function.
The argument can be NULL.
y

Type: gint*

Y coordinate of window.

The argument will be set by the function.
The argument can be NULL.