GetRootCrd.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. '"
  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.2 1998/09/14 18:22:51 stanton 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 <tk.h>fR
  18. .sp
  19. fBTk_GetRootCoordsfR(fItkwin, xPtr, yPtrfR)
  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 fItkwinfR'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 fItkwinfR's border.
  30. .BE
  31. .SH DESCRIPTION
  32. .PP
  33. This procedure scans through the structural information maintained
  34. by Tk to compute the root-window coordinates corresponding to
  35. the upper-left corner of fItkwinfR's border.  If fItkwinfR has
  36. no border, then fBTk_GetRootCoordsfR returns the root-window
  37. coordinates corresponding to location (0,0) in fItkwinfR.
  38. fBTk_GetRootCoordsfR is relatively efficient, since it doesn't have to
  39. communicate with the X server.
  40. .SH KEYWORDS
  41. coordinates, root window