1XTranslateCoordinates(3)        XLIB FUNCTIONS        XTranslateCoordinates(3)
2
3
4

NAME

6       XTranslateCoordinates - translate window coordinates
7

SYNTAX

9       Bool XTranslateCoordinates(Display *display, Window src_w, dest_w, int
10              src_x, int src_y, int *dest_x_return, int *dest_y_return, Window
11              *child_return);
12

ARGUMENTS

14       child_return
15                 Returns the child if the coordinates are contained in a
16                 mapped child of the destination window.
17
18       dest_w    Specifies the destination window.
19
20       dest_x_return
21       dest_y_return
22                 Return the x and y coordinates within the destination window.
23
24       display   Specifies the connection to the X server.
25
26       src_w     Specifies the source window.
27
28       src_x
29       src_y     Specify the x and y coordinates within the source window.
30

DESCRIPTION

32       If XTranslateCoordinates returns True, it takes the src_x and src_y
33       coordinates relative to the source window's origin and returns these
34       coordinates to dest_x_return and dest_y_return relative to the destina‐
35       tion window's origin.  If XTranslateCoordinates returns False, src_w
36       and dest_w are on different screens, and dest_x_return and
37       dest_y_return are zero.  If the coordinates are contained in a mapped
38       child of dest_w, that child is returned to child_return.  Otherwise,
39       child_return is set to None.
40
41       XTranslateCoordinates can generate a BadWindow error.
42

DIAGNOSTICS

44       BadWindow A value for a Window argument does not name a defined Window.
45

SEE ALSO

47       Xlib - C Language X Interface
48
49
50
51X Version 11                     libX11 1.6.7         XTranslateCoordinates(3)
Impressum