FUNCTIONS GT

GTI_MOUSEPOS_XY

Return the mouse position in pixels

Syntax

Signature
GtInfo( GTI_MOUSEPOS_XY ) --> aPosition

Arguments

GTI_MOUSEPOS_XY

The selector, from gtinfo.ch.

Return value

The last mouse position as { nX, nY }, in the pixels of the window.

Description

MRow() and MCol() give the same position in text cells.

Notes

Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.

Output

See also