---
name: "XtTranslateCoords"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtTranslateCoords"
---

# XtTranslateCoords(3)

translate widget coordinates

## NAME

XtTranslateCoords - translate widget coordinates

## SYNTAX

\#include \<X11/Intrinsic.h\>

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

## ARGUMENTS

- *rootx\_return*

  - *rooty\_return*

  Returns the root-relative x and y coordinates.

- *x*

  - *y*

  Specify the widget-relative x and y coordinates.

- *w*

  Specifies the widget.

## 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

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