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

NextPrevUpTopContentsIndex

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.

x

An integer.

y

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 .

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

top-level-interface-geometry
with-geometry


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex