WSIZE(3W)
NAME
wsize − change the size of a window
SYNOPSIS
int wsize(fd,w,h);
int fd;
int w,h;
DESCRIPTION
fd is an integer file descriptor for an opened window type device interface.
w,h is the width and height of the window view measured in pixels. Width and height always refer to the contents portion, not the border.
DISCUSSION
This procedure is used to change the size of the window, which means to change the view into the virtual raster.
This operation is limited by the current position of the view into the raster and the raster’s size. Under no circumstance will the size cause the delta x,y into the raster to change. Also the size operation may cause a portion of the window to be off screen.
A request to set the size of the window to less than the minimum width or height will set the window size to the minimum width or height. In the same way, a request to set the size to more than the maximum width or height will set the window size to the maximum width or height. The maximum size for a graphics window type is its raster size minus the current pan delta set via wpan. The maximum size for a term0 window type is its initial creation size. If the border type set via wbanner(3W) is "normal" (i.e. display a border), then the minimum size for both a term0 and graphics window type is such that at least one character of the label is visible. If the border type is "thin", then the minimum size is 1 pixel for graphics and 1 character for term0.
SEE ALSO
DIAGNOSTICS
A return of -1 indicates failure; otherwise 0 is returned. See errno(2) for more information.
Hewlett-Packard Company — HP-UX Release 8.0: January 1991