Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pqsks(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PQSKS(3g)  —  Subroutines

Name

PQSKS − Returns information about the stroke device state. 

Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function

Old Syntax

PQSKS (WKID, SKDNR, TYPE, N, MLDR, ERRIND, MODE, ESW, IVIEWI, NP,
IPXA, IPYA, PET, EAREA, BUFLEN, LDR, DATREC)

Argument          Data Type      Access    Description
---------------------------------------------------------------------------
WKID              Integer        Read      Workstation identifier
SKDNR             Integer        Read      Stroke device number
TYPE              Integer        Read      Type of the returned values
N                 Integer        Read      Maximum number of points
MLDR              Integer        Read      Dimension of the data record
                                           array
ERRIND            Integer        Write     Error indicator
MODE              Integer        Write     Operating mode
ESW               Integer        Write     Echo switch
IVIEWI            Integer        Write     Initial view index
NP                Integer        Write     Number of points
IPXA(N), IPYA(N)  Real           Write     Initial points in the stroke,
                                           in world coordinates
PET               Integer        Write     Prompt and echo type
EAREA(4)          Array of       Write     Echo area, in device
                  reals                    coordinates (XMIN, XMAX, YMIN,
                                           YMAX)
BUFLEN            Integer        Write     Input buffer size
LDR               Integer        Write     Number of array elements used in
                                           a data record
DATREC(MLDR)      Character ∗80  Write     Data record
---------------------------------------------------------------------------

New Syntax

PQSKS (WKID, SKDNR, TYPE, N, MLDR, ERRIND, MODE, ESW, IVIEWI, NP,
IPXA, IPYA, PET, EAREA, LDR, DATREC)

Argument          Data Type      Access    Description
---------------------------------------------------------------------------
WKID              Integer        Read      Workstation identifier
SKDNR             Integer        Read      Stroke device number
TYPE              Integer        Read      Type of the returned values
N                 Integer        Read      Maximum number of points
MLDR              Integer        Read      Dimension of the data record
                                           array
ERRIND            Integer        Write     Error indicator
MODE              Integer        Write     Operating mode
ESW               Integer        Write     Echo switch
IVIEWI            Integer        Write     Initial view index
NP                Integer        Write     Number of points
IPXA(N), IPYA(N)  Real           Write     Initial points in the stroke,
                                           in world coordinates
PET               Integer        Write     Prompt and echo type
EAREA(4)          Array of       Write     Echo area, in device
                  reals                    coordinates (XMIN, XMAX, YMIN,
                                           YMAX)
LDR               Integer        Write     Number of array elements used in
                                           a data record
DATREC(MLDR)      Character ∗80  Write     Data record
---------------------------------------------------------------------------

Constants

Defined Argument     Constant     Description
---------------------------------------------------------------------------
TYPE                 PSET         Use the exact state list values.
                     PREALI       Use the values approximated by the
                                  graphics handler.
MODE                 PREQU        Request mode.
                     PSAMPL       Sample mode.
                     PEVENT       Event mode.
ESW                  PNECHO       Echo disabled.
                     PECHO        Echo enabled.
---------------------------------------------------------------------------

Description

PQSKS queries the workstation state list and returns values for the following:

•Operating mode value

•Echo switch value

•List of initial stroke points in world coordinates

•Prompt and echo type

•Echo area in device coordinates

•Stroke data record

See Chapter 9 for information on building data records for initializing input devices. 

See Also

PINSK
PQSKS3
PSSKM

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