
82 Perl/Tk Pocket Reference
$widget->vrootheight;
Returns the height of the virtual root window associated
with
$widget.
$widget->vrootwidth;
Returns the width of the virtual root window associated
with
$widget.
$widget->vrootx;
Returns the x-offset of the virtual root window associated
with
$widget.
$widget->vrooty;
Returns the y-offset of the virtual root window associated
with
$widget.
$widget->width;
Returns
$widget’s width in pixels.
$widget->x;
Returns x-coordinate, in
$widget’s parent, of the upper-
left corner of
$widget.
$widget->y;
Returns y-coordinate, in
$widget’s parent, of the upper-
left corner of
$widget.
14. The Window Manager
Many of the following methods have one or more optional
arguments which, when specified, set something, but
when missing, get something. The widget is typically a
MainWindow or a Toplevel.
$mw->aspect(?minNumer, minDenom, maxNumer,
maxDenom?);
Informs window manager of desired aspect ratio range for
$mw.
$mw->client(?name?);
Stores name in
$mw’s WM_CLIENT_MACHINE property.
Informs window manager of client machine on which the
application is running.