getGeometry ?-w win? ?(-c|-d)?
Return a Tcl list of the form {x y w h} where x and y are the x-coord and y-coord of the lower left corner in screen coordinates and w and h are the width and height of the entire window, including title bar and toolbar.
If the -c flag is specified, the command returns the window's content rectangle in screen coordinates. This is the region beneath the toolbar.
If the -d flag is specified, the command returns the window's document rectangle in screen coordinates. This includes the toolbar and the content rectangle.