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


query-pointer

Function: query-pointer { window -> x y same? kid state rx ry root}
file: 10-C-utils.t
package: muf
status: alpha

This function returns information about the location of the pointer (cursor) relative to the given window.

The window argument must satisfy window?

The return values are:

x
(satisfies integer? pixel pointer location relative to window.
y
(satisfies integer? pixel pointer location relative to window.
same?
(t or nil) t if pointer is on same screen as window.
kid
(nil or satisfies window?) child of window containing the pointer, if any.
state
(satisfies integer?) state of mouse buttons and modifier keys.
rx
(satisfies integer) pixel pointer location relative to root window.
ry
(satisfies integer) pixel pointer location relative to root window.
root
(satisfies window?) root window containing pointer

If same? is nil, child will also be nil and x and y will be zero.


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