XtTranslateCoords(3) XT FUNCTIONS XtTranslateCoords(3)

# [NAME](#NAME)

XtTranslateCoords - translate widget coordinates

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

void XtTranslateCoords(Widget *w*, Position *x*, Position *y*, Position \**rootx\_return*, Position \**rooty\_return*);

# [ARGUMENTS](#ARGUMENTS)

[*rootx\_return*](#rootx_return)

[*rooty\_return*](#rooty_return)

Returns the root-relative x and y coordinates.

[*x*](#x)

[*y*](#y)

Specify the widget-relative x and y coordinates.

[*w*](#w)

Specifies the widget.

# [DESCRIPTION](#DESCRIPTION)

While **XtTranslateCoords** is similar to the Xlib **XTranslateCoordinates** function, it does not generate a server request because all the required information already is in the widget's data structures.

# [SEE ALSO](#SEE_ALSO)

*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtTranslateCoords(3) from libxt 1.3.1-r8 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
