URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [tk/] [doc/] [GetRootCrd.3] - Blame information for rev 1765
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1990 The Regents of the University of California.
|
3 |
|
|
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
|
4 |
|
|
'\"
|
5 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
6 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
7 |
|
|
'\"
|
8 |
|
|
'\" RCS: @(#) $Id: GetRootCrd.3,v 1.1.1.1 2002-01-16 10:25:48 markom Exp $
|
9 |
|
|
'\"
|
10 |
|
|
.so man.macros
|
11 |
|
|
.TH Tk_GetRootCoords 3 "" Tk "Tk Library Procedures"
|
12 |
|
|
.BS
|
13 |
|
|
.SH NAME
|
14 |
|
|
Tk_GetRootCoords \- Compute root-window coordinates of window
|
15 |
|
|
.SH SYNOPSIS
|
16 |
|
|
.nf
|
17 |
|
|
\fB#include \fR
|
18 |
|
|
.sp
|
19 |
|
|
\fBTk_GetRootCoords\fR(\fItkwin, xPtr, yPtr\fR)
|
20 |
|
|
.SH ARGUMENTS
|
21 |
|
|
.AS Tk_Window tkwin
|
22 |
|
|
.AP Tk_Window tkwin in
|
23 |
|
|
Token for window.
|
24 |
|
|
.AP int *xPtr out
|
25 |
|
|
Pointer to location in which to store root-window x-coordinate
|
26 |
|
|
corresponding to left edge of \fItkwin\fR's border.
|
27 |
|
|
.AP int *yPtr out
|
28 |
|
|
Pointer to location in which to store root-window y-coordinate
|
29 |
|
|
corresponding to top edge of \fItkwin\fR's border.
|
30 |
|
|
.BE
|
31 |
|
|
|
32 |
|
|
.SH DESCRIPTION
|
33 |
|
|
.PP
|
34 |
|
|
This procedure scans through the structural information maintained
|
35 |
|
|
by Tk to compute the root-window coordinates corresponding to
|
36 |
|
|
the upper-left corner of \fItkwin\fR's border. If \fItkwin\fR has
|
37 |
|
|
no border, then \fBTk_GetRootCoords\fR returns the root-window
|
38 |
|
|
coordinates corresponding to location (0,0) in \fItkwin\fR.
|
39 |
|
|
\fBTk_GetRootCoords\fR is relatively efficient, since it doesn't have to
|
40 |
|
|
communicate with the X server.
|
41 |
|
|
|
42 |
|
|
.SH KEYWORDS
|
43 |
|
|
coordinates, root window
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.