Tcl8.6.9/Tk8.6.9 Documentation > Tk C API, version 8.6.9 > CoordToWin
Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API
Tk_CoordsToWindow(rootX, rootY, tkwin)
- int rootX (in)
- X-coordinate (in root window coordinates).
- int rootY (in)
- Y-coordinate (in root window coordinates).
- Tk_Window tkwin (in)
- Token for window that identifies application.
The containing window is decided using the same rules that determine 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 both contain the point then the highest one in the stacking order (i.e. the one that's visible on the screen) gets preference.containing, coordinates, root window
Copyright © 1994-1996 Sun Microsystems, Inc.