Tk Library Procedures Tk_GetVRootGeometry(3TK)
_________________________________________________________________
NAME
Tk_GetVRootGeometry - Get location and size of virtual root
for windowSYNOPSIS
#include
Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr)
ARGUMENTSTk_Window tkwin (in) Token for window whose
virtual root is to be queried. int xPtr (out) Points to word in which tostore x-offset of virtual
root. int yPtr (out) Points to word in which tostore 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 thevirtual root window associated with tkwin. The ``associ-
ated'' virtual root is the one in which tkwin's nearesttop-level ancestor (or tkwin itself if it is a top-level
window) has been reparented by the window manager. Thiswindow 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 Tk Last change: 4.0 1Tk Library Procedures Tk_GetVRootGeometry(3TK)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:_______________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE|
|____________________|__________________|_
| Availability | runtime/tk-8 |
|____________________|__________________|_
| Interface Stability| Uncommitted ||____________________|_________________|
NOTES Source for Tk is available on http://opensolaris.org. Tk Last change: 4.0 2