📄 coordtowin.3
字号:
'\"'\" Copyright (c) 1990-1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) CoordToWin.3 1.9 96/03/26 18:05:14'\" .so man.macros.TH Tk_CoordsToWindow 3 "" Tk "Tk Library Procedures".BS.SH NAMETk_CoordsToWindow \- Find window containing a point.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spTk_Window\fBTk_CoordsToWindow\fR(\fIrootX, rootY, tkwin\fR).SH ARGUMENTS.AS Tk_Window tkwin.AP int rootX inX-coordinate (in root window coordinates)..AP int rootY inY-coordinate (in root window coordinates)..AP Tk_Window tkwin inToken for window that identifies application..BE.SH DESCRIPTION.PP\fBTk_CoordsToWindow\fR locates the window that contains a given point.The point is specified in root coordinates with \fIrootX\fR and\fIrootY\fR (if a virtual-root window manager is in use then\fIrootX\fR and \fIrootY\fR are in the coordinate system of thevirtual root window).The return value from the procedure is a token for the window thatcontains the given point.If the point is not in any window, or if the containing windowis not in the same application as \fItkwin\fR, then NULL isreturned..PPThe containing window is decided using the same rules that determinewhich window contains the mouse cursor: if a parent and a child bothcontain the point then the child gets preference, and if two siblingsboth contain the point then the highest one in the stacking order(i.e. the one that's visible on the screen) gets preference..SH KEYWORDScontaining, coordinates, root window
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -