OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tk/] [doc/] [CoordToWin.3] - Diff between revs 579 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
'\"
'\"
'\" Copyright (c) 1990-1993 The Regents of the University of California.
'\" Copyright (c) 1990-1993 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\"
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
'\"
'\" RCS: @(#) $Id: CoordToWin.3,v 1.1.1.1 2002-01-16 10:25:48 markom Exp $
'\" RCS: @(#) $Id: CoordToWin.3,v 1.1.1.1 2002-01-16 10:25:48 markom Exp $
'\"
'\"
.so man.macros
.so man.macros
.TH Tk_CoordsToWindow 3 "" Tk "Tk Library Procedures"
.TH Tk_CoordsToWindow 3 "" Tk "Tk Library Procedures"
.BS
.BS
.SH NAME
.SH NAME
Tk_CoordsToWindow \- Find window containing a point
Tk_CoordsToWindow \- Find window containing a point
.SH SYNOPSIS
.SH SYNOPSIS
.nf
.nf
\fB#include \fR
\fB#include \fR
.sp
.sp
Tk_Window
Tk_Window
\fBTk_CoordsToWindow\fR(\fIrootX, rootY, tkwin\fR)
\fBTk_CoordsToWindow\fR(\fIrootX, rootY, tkwin\fR)
.SH ARGUMENTS
.SH ARGUMENTS
.AS Tk_Window tkwin
.AS Tk_Window tkwin
.AP int rootX in
.AP int rootX in
X-coordinate (in root window coordinates).
X-coordinate (in root window coordinates).
.AP int rootY in
.AP int rootY in
Y-coordinate (in root window coordinates).
Y-coordinate (in root window coordinates).
.AP Tk_Window tkwin in
.AP Tk_Window tkwin in
Token for window that identifies application.
Token for window that identifies application.
.BE
.BE
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
\fBTk_CoordsToWindow\fR locates the window that contains a given point.
\fBTk_CoordsToWindow\fR locates the window that contains a given point.
The point is specified in root coordinates with \fIrootX\fR and
The point is specified in root coordinates with \fIrootX\fR and
\fIrootY\fR (if a virtual-root window manager is in use then
\fIrootY\fR (if a virtual-root window manager is in use then
\fIrootX\fR and \fIrootY\fR are in the coordinate system of the
\fIrootX\fR and \fIrootY\fR are in the coordinate system of the
virtual root window).
virtual root window).
The return value from the procedure is a token for the window that
The return value from the procedure is a token for the window that
contains the given point.
contains the given point.
If the point is not in any window, or if the containing window
If the point is not in any window, or if the containing window
is not in the same application as \fItkwin\fR, then NULL is
is not in the same application as \fItkwin\fR, then NULL is
returned.
returned.
.PP
.PP
The containing window is decided using the same rules that determine
The containing window is decided using the same rules that determine
which window contains the mouse cursor:  if a parent and a child both
which window contains the mouse cursor:  if a parent and a child both
contain the point then the child gets preference, and if two siblings
contain the point then the child gets preference, and if two siblings
both contain the point then the highest one in the stacking order
both contain the point then the highest one in the stacking order
(i.e. the one that's visible on the screen) gets preference.
(i.e. the one that's visible on the screen) gets preference.
.SH KEYWORDS
.SH KEYWORDS
containing, coordinates, root window
containing, coordinates, root window
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.