Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wsize(3W) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wpan(3W)

,wbanner(3W)

WSIZE(3W)

Series 300 and 500 Only

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

wpan(3W),wbanner(3W). 

DIAGNOSTICS

A return of -1 indicates failure; otherwise 0 is returned.  See errno(2) for more information.

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026