Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fagetinfo(3W) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fasetinfo(3W)

fainit(3W)

FAGETINFO(3W)

Series 300 and 500 Only

NAME

fagetinfo − get information about the fast alpha environment

SYNOPSIS

#include <fa.h>
int fagetinfo(gfd,fainfoptr)
int gfd;
struct fainfo *fainfoptr;

DESCRIPTION

gfd is an integer file descriptor for an opened graphics window type device interface. 

fainfoptr
is a pointer to the structure defined as follows:

struct fainfo {
struct fa_rectangle size;
int capabilities;
int enhancements;
int defaultenhancements;
int cursor;
int fontcellheight;
int fontcellwidth;
int foregroundplanes;
int backgroundplanes;
int clearbeforewrite;
int colormode;
int makecurrent;
};

Descriptions of each field in this structure are:

size A structure with one corner set to [0, 0] and the other set to [number of columns, number of lines]. (See general description.) 

capabilities An integer assigned a value from a list in the headerfile.  The contents of capabilities may be used by a program to detect what additional capabilities are available on a particular device. Currently defined capabilities are:

FAWINDOW - Device is a window or bit-mapped graphics device. More information may be obtained by calls to other window system routines. 

enhancements is assigned to the bitwise OR-ing of the various enhancement bits (see farectwrite) which are supported by the particular device. 

defaultenhancements Is initially set to a value which optimizes the performance of the window system.  It is used by fawrite and faroll.  It is a read/write field in that it can be changed by calling fasetinfo. 

cursor Cursor is TRUE if the cursor may be physically removed from the window device and is FALSE otherwise. 

fontcellheight, fontcellwidth Indicates the size (in pixels) of the fontcell of 1-byte characters.  The 2-byte characters are twice as wide.  The cursor size and the column addressing are based on the size of 1-byte characters. 

clearbeforewrite Is TRUE if the fast alpha library routine is to clear the background of the area to be written to before the characters are written.   clearbeforewrite set to FALSE indicates that the user is responsible for clearing and desires no background clearing by the library routine. clearbeforewrite defaults to TRUE.  clearbeforewrite currently pertains only to FACOLOR mode; see colormode, below. 

foregroundplanes, backgroundplanes Specifies the number of memory planes available for controlling the foreground and background colors respectively.  A value of 1 in foregroundplanes and 1 in backgroundplanes indicates a monochrome system.  Values > 1 indicate a color system. 

colormode When set to FAWONB (white on black - which is the default) indicates that the user is not using the color options.  This allows the fast alpha routines to run somewhat faster than when color is incorporated.  When colormode is set to FACOLOR, the additional system operations needed to incorporate color are performed. A third option is to set colormode to FABONW (black on white) which inverses the previous monochromatic option, FAWONB; see facolors. 

makecurrent Setting this field to bitwise OR-ing of values specified in the headerfile (/usr/include/fa.h) controls the appearance of fast alpha operations on the screen. For performance reasons, the user may choose to suppress the updating of the screen until several operations are queued up. When updating is desired, the user signals the fast alpha environment to update the screen by setting the makecurrent value to MCALWAYS (make current always). Queued up operations will show up on the screen at this time. The default value is MCALWAYS, that is, update the screen upon every fast alpha operation. 

DISCUSSION

This routine is used to find out information about the window device, or to get currently set values in the fast alpha environment.  Display information might include the size of the window device and which video attributes it supports. Fast alpha environment values might include the size of the current window device or the size of the currently active font. 

fagetinfo is the counterpart of fasetinfo. It is used for inquiring the values of parameters in a fast alpha environment. 

HARDWARE DEPENDENCIES

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

SEE ALSO

fasetinfo(3W), fainit(3W). 

DIAGNOSTICS

A value of -1 is returned if gfd is invalid, or a call to fainit was never executed on this gfd.  See errno(2) for further information. 

Hewlett-Packard Company  —  May 11, 2021

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