Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ toxy_term0(3W) — HP-UX 9.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fromxy_term0(3W)

TOXY_TERM0(3W)

NAME

toxy_term0 − convert Term0 character units to pixels

SYNOPSIS

int toxy_term0(fd,xptr,yptr,col,row);
int fd;
int *ptr,*yptr;
int col, row;

DESCRIPTION

fd is an integer file descriptor for an opened Term0 window type device interface. 

xptr,yptr
pointers to pixel coordinates of the point after mapping, whose values are set by this routine.

col,row
the coordinates (in character units) of the point to be mapped.

DISCUSSION

This routine provides a mapping from character units (columns and rows) to pixels in a Term0 window.  The coordinates of the upper-left-most pixel in the character are used.  Both coordinate systems (pixels and characters) define 0,0 to be at the upper left corner of the window (which may be offscreen).  Note that character 0,0 in the window may not be character 0,0 in the scroll buffer. 

This routine is useful to convert screen positions into x,y locations suitable for use with sprites or other pixel-oriented tracking schemes. 

HARDWARE DEPENDENCIES

Series 500:
Term0 routines do not support HP-15 (2-byte) fonts on Series 500.

SEE ALSO

fromxy_term0(3W). 

DIAGNOSTICS

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

Hewlett-Packard Company  —  HP-UX Release 8.0: January 1991

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