1Tk_GetRootCoords(3)          Tk Library Procedures         Tk_GetRootCoords(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_GetRootCoords - Compute root-window coordinates of window
9

SYNOPSIS

11       #include <tk.h>
12
13       Tk_GetRootCoords(tkwin, xPtr, yPtr)
14

ARGUMENTS

16       Tk_Window tkwin (in)          Token for window.
17
18       int *xPtr (out)               Pointer  to  location  in  which to store
19                                     root-window x-coordinate corresponding to
20                                     left edge of tkwin's border.
21
22       int *yPtr (out)               Pointer  to  location  in  which to store
23                                     root-window y-coordinate corresponding to
24                                     top edge of tkwin's border.
25______________________________________________________________________________
26

DESCRIPTION

28       This  procedure  scans through the structural information maintained by
29       Tk to compute the root-window coordinates corresponding to  the  upper-
30       left  corner  of  tkwin's border.  If tkwin has no border, then Tk_Get‐
31       RootCoords returns the root-window coordinates corresponding  to  loca‐
32       tion  (0,0)  in tkwin.  Tk_GetRootCoords is relatively efficient, since
33       it does not have to communicate with the X server.
34

KEYWORDS

36       coordinates, root window
37
38
39
40Tk                                                         Tk_GetRootCoords(3)
Impressum