## Tcl9.0.3/Tk9.0.3 Documentation > Tk C API > GetVRoot

### 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

  NAME
    Tk_GetVRootGeometry — 窓の為の仮想原点の場所と寸法を得る｡　 Get location and size of virtual root for window
  SYNOPSIS
    #include <tk.h>
    Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr)
  引数 ARGUMENTS
    Tk_Window tkwin (入力in)
    int xPtr (出力out)
    int yPtr (出力out)
    int widthPtr (出力out)
    int heightPtr (出力out)
  説明 DESCRIPTION
  KEYWORDS

### NAME

Tk_GetVRootGeometry — 窓の為の仮想原点の場所と寸法を得る｡　 Get location and size of virtual root for window

### SYNOPSIS

#include <tk.h>
Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr)

### 引数 ARGUMENTS

Tk_Window tkwin (入力in)
  仮想原点が問われているその窓の字句｡　 Token for window whose virtual root is to be queried.

int xPtr (出力out)
  仮想原点の x-offset を保存すべき単語を指す｡　 Points to word in which to store x-offset of virtual root.

int yPtr (出力out)
  仮想原点の y-offset を保存すべき単語を指す｡　 Points to word in which to store y-offset of virtual root.

int widthPtr (出力out)
  仮想原点の巾を保存すべき単語を指す｡　 Points to word in which to store width of virtual root.

int heightPtr (出力out)
  仮想原点の高さを保存すべき単語を指す｡　 Points to word in which to store height of virtual root.

### 説明 DESCRIPTION

Tk_GetVRootGeometry は tkwin と結合した根本窓に関する幾何情報を返す｡“結合した” 仮想根本は､その中の tkwin の最も近い頂上水準の祖先(頂上水準の窓では tkwin 自身)が窓管理譜により親を変えられたものである｡この窓は窓管理譜により頂上水準に置かれた __SWM_ROOT や __WM_ROOT 特性により識別される｡ tkwin が仮想根本に結合していない場合(譬えば､窓管理譜が仮想根本を使わない為)､ *xPtr と *yPtr は 0 に設定され､ *widthPtr と *heightPtr は tkwin を含む画面の寸法に設定される｡ Tk_GetVRootGeometry returns geometry information about the virtual root window associated with tkwin. The “associated” virtual root is the one in which tkwin's nearest top-level ancestor (or tkwin itself if it is a top-level window) has been reparented by the window manager. This window is identified by a __SWM_ROOT or __WM_ROOT property placed on the top-level window by the window manager. If tkwin is not associated with a virtual root (e.g. because the window manager does not use virtual roots) then *xPtr and *yPtr will be set to 0 and *widthPtr and *heightPtr will be set to the dimensions of the screen containing tkwin.

### KEYWORDS

geometry, height, location, virtual root, width, window manager
Copyright © 1990 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.