All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

convert-relative-position Function

Summary

Converts a screen position from one coordinate system to another.

Package

capi

Signature

convert-relative-position from to x y => to-x, to-y

Arguments
from
A pane, interface or screen.
to
A pane, interface or screen.
An integer.
An integer.
Values
to-x
An integer.
to-y
An integer.
Description

The function convert-relative-position converts the position x,y in the coordinate system of from to that of to.

Examples
(example-edit-file "capi/elements/convert-relative-position")
See also

top-level-interface-geometry
with-geometry


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27