beetlebug▾
/

winfo vrootwidth

Gives the width of the virtual root window of a widget.

winfo vrootwidth WINDOW

Description

ztk has no virtual root window, so the result is the width of the screen.

Returns

An integer.

Examples

% expr {[winfo vrootwidth .] == [winfo screenwidth .]}
1

Errors

% winfo vrootwidth
wrong # args: should be "winfo vrootwidth window"
-errorcode NONE

% winfo vrootwidth .nope
bad window path name ".nope"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1