GdkWindow::get_pointer

array get_pointer(void);

Returns an array of information about the mouse pointer.

The first 2 values are the X and Y coordinates of the mouse pointer, and the third is the button pointer_state.