[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPQSK - Inquire Stroke Device State

GPQSK ( wsid, device, type, lenpts, length, errind, mode, echosw, view, npoint, pointarray, echo, area, buflen, editpos, datalen, data)

Note:

This subroutine is a Workstation State List (WSL) inquiry. For an overview, see "WSL Inquiries"

Purpose

Use GPQSK to inquire the current state of a stroke device attached to the specified workstation.

The graPHIGS API returns the current values for the specified device.

If the inquired information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the error indicator is 533 (an output parameter is not large enough for all the requested data), then the values up to the length specified are returned. If the inquired information is unavailable, then the error indicator (errind) contains an error number indicating the reason, and the values returned in the output parameters are unpredictable.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

device -- specified by user, fullword integer

Stroke device number (>=1)

type -- specified by user, fullword integer

Type of returned values ( 1=SET )

lenpts -- specified by user, fullword integer

Length of initial stroke points array, in points, provided by the application for the graPHIGS API to return corresponding data.

length -- specified by user, fullword integer

Length of requested stroke data array provided by the application for the graPHIGS API to return corresponding data.

errind -- returned by the graPHIGS API, fullword integer

Error indicator. If the error indicator is zero, the request has been completed. Otherwise, one of the following errors exists:
25
SPECIFIED WORKSTATION DOES NOT EXIST
38
WORKSTATION HAS ONLY OUTPUT CAPABILITIES
140
DEVICE NUMBER < ONE OR DEVICE NOT AVAILABLE
509
DATA LENGTH VALUE < ZERO OR REQUIRED LENGTH
533
INQUIRY DATA EXCEEDS AREA. OUTPUT TRUNCATED
534
TYPE VALUE IS INVALID

mode -- returned by the graPHIGS API, fullword integer

Current operating mode (1=REQUEST, 2=SAMPLE, 3=EVENT, 4=APPLICATION_DEFINED ) The graPHIGS API only returns a mode of 4=APPLICATION_DEFINED if the application set the device mode using the Set Input Device State ( GPIDMO) subroutine and the mode does not emulate Request, Sample, or Event mode.

echosw -- returned by the graPHIGS API, fullword integer

Current echo switch ( 1=NOECHO, 2=ECHO )

view -- returned by the graPHIGS API, fullword integer

Current initial view index.

npoint -- returned by the graPHIGS API, fullword integer

Current number of points in the initial stroke.

pointarray -- returned by the graPHIGS API, array of short floating-point numbers (WC)

Current coordinates of initial points in stroke. Array is formatted as a list of points in row order.

echo -- returned by the graPHIGS API, fullword integer

Current prompt/echo type.

area -- returned by the graPHIGS API, 6 short floating-point numbers (DC)

Current echo area (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax)

buflen -- returned by the graPHIGS API, fullword integer

Current stroke input buffer size in points.

editpos -- returned by the graPHIGS API, fullword integer

Current editing position.

datalen -- returned by the graPHIGS API, fullword integer

Current stroke data record length in bytes.

data -- returned by the graPHIGS API, variable length data

Current stroke data record.

Error Codes

None

Related Subroutines

GPIDMO
Set Input Device Mode
GPQDSK
Inquire Default Stroke Device Data
GPINSK
Initialize Stroke

RCP code

201338884 ( X'0C003004')


[ Previous | Next | Contents | Glossary | Home | Search ]