Debian Codegraph @

pod/pTk/GetVRoot.pod

raw
1 # Copyright (c) 1990 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk_GetVRootGeometry - Get location and size of virtual root for window
11
12 =for category C Programming
13
14 =head1 SYNOPSIS
15
16 B<#include E<lt>tk.hE<gt>>
17
18 B<Tk_GetVRootGeometry(>I<tkwin, xPtr, yPtr, widthPtr, heightPtr>B<)>
19
20 =head1 ARGUMENTS
21
22 =over 4
23
24 =item Tk_Window tkwin (in)
25
26 Token for window whose virtual root is to be queried.
27
28 =item int xPtr (out)
29
30 Points to word in which to store x-offset of virtual root.
31
32 =item int yPtr (out)
33
34 Points to word in which to store y-offset of virtual root.
35
36 =item "int" widthPtr (out)
37
38 Points to word in which to store width of virtual root.
39
40 =item "int" heightPtr (out)
41
42 Points to word in which to store height of virtual root.
43
44 =back
45
46 =head1 DESCRIPTION
47
48 B<TkGetVRootGeometry> returns geometry information about the virtual
49 root window associated with I<tkwin>. The ``associated'' virtual
50 root is the one in which I<tkwin>'s nearest top-level ancestor (or
51 I<tkwin> itself if it is a top-level window) has
52 been reparented by the window manager. This window is identified by
53 a B<__SWM_ROOT> or B<__WM_ROOT> property placed on the top-level
54 window by the window manager.
55 If I<tkwin> is not associated with a virtual root (e.g.
56 because the window manager doesn't use virtual roots) then *I<xPtr> and
57 *I<yPtr> will be set to 0 and *I<widthPtr> and *I<heightPtr>
58 will be set to the dimensions of the screen containing I<tkwin>.
59
60 =head1 KEYWORDS
61
62 geometry, height, location, virtual root, width, window manager