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
27

DESCRIPTION

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

KEYWORDS

38       coordinates, root window
39
40
41
42Tk                                                         Tk_GetRootCoords(3)
Impressum