Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

GT-MOUSE-POSITION

source files: xgtm.[ch], term/*.trm, gtplot.h

SYNTAX

(GT-MOUSE-POSITION)
(SEND <gtm:terminal> :MOUSE-POSITION)

DESCRIPTION

Return the location of the mouse cursor relative to the current window. (Origin (0 0) is at lower-left.) Return value is a list of two fixnums, (X Y).

Note that this call *deliberately* does not read the mouse key status, since polling the mouse buttons is a sure way to miss rapid clicks. Use (GT-BLOCKING-QUEUE-READ) and/or (GT-NONBLOCKING-QUEUE-READ) to read mouseclicks. (Or a higher level package that does so for you!)


Go to the first, previous, next, last section, table of contents.