XtTranslateCoordinates(3Xt) — MIT X11R4
Name
XtTranslateCoordinates − translate widget coordinates
Syntax
void XtTranslateCoords(w, x, y, rootx_return, rooty_return)
Widget w;
Position x, y;
Position *rootx_return, *rooty_return;
Arguments
rootx_return
rooty_returnReturns the root-relative x and y coordinates.
x
ySpecify the widget-relative x and y coordinates.
wSpecifies 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 Window System Toolkit: The Complete Programmer’s Guide and Specification, Paul J. Asente and Ralph Swick
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys