Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk_getrootcoords(3tk) [opensolaris man page]

Tk_GetRootCoords(3TK)					       Tk Library Procedures					     Tk_GetRootCoords(3TK)

__________________________________________________________________________________________________________________________________________________

NAME
Tk_GetRootCoords - Compute root-window coordinates of window SYNOPSIS
#include <tk.h> Tk_GetRootCoords(tkwin, xPtr, yPtr) ARGUMENTS
Tk_Window tkwin (in) Token for window. int *xPtr (out) Pointer to location in which to store root-window x-coordinate corresponding to left edge of tkwin's border. int *yPtr (out) Pointer to location in which to store root-window y-coordinate corresponding to top edge of tkwin's border. _________________________________________________________________ DESCRIPTION
This procedure scans through the structural information maintained by Tk to compute the root-window coordinates corresponding to the upper- left corner of tkwin's border. If tkwin has no border, then Tk_GetRootCoords returns the root-window coordinates corresponding to location (0,0) in tkwin. Tk_GetRootCoords is relatively efficient, since it doesn't have to communicate with the X server. KEYWORDS
coordinates, root window ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tk is available on http://opensolaris.org. Tk Tk_GetRootCoords(3TK)

Check Out this Related Man Page

Tk_GetVRootGeometry(3TK)				       Tk Library Procedures					  Tk_GetVRootGeometry(3TK)

__________________________________________________________________________________________________________________________________________________

NAME
Tk_GetVRootGeometry - Get location and size of virtual root for window SYNOPSIS
#include <tk.h> Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr) ARGUMENTS
Tk_Window tkwin (in) Token for window whose virtual root is to be queried. int xPtr (out) Points to word in which to store x-offset of virtual root. int yPtr (out) Points to word in which to store y-offset of virtual root. int widthPtr (out) Points to word in which to store width of virtual root. int heightPtr (out) Points to word in which to store height of virtual root. _________________________________________________________________ DESCRIPTION
TkGetVRootGeometry returns geometry information about the virtual root window associated with tkwin. The ``associated'' virtual root is the one in which tkwin's nearest top-level ancestor (or tkwin itself if it is a top-level window) has been reparented by the window man- ager. This window is identified by a __SWM_ROOT or __WM_ROOT property placed on the top-level window by the window manager. If tkwin is not associated with a virtual root (e.g. because the window manager doesn't use virtual roots) then *xPtr and *yPtr will be set to 0 and *widthPtr and *heightPtr will be set to the dimensions of the screen containing tkwin. KEYWORDS
geometry, height, location, virtual root, width, window manager ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tk is available on http://opensolaris.org. Tk 4.0 Tk_GetVRootGeometry(3TK)
Man Page