INQUIRE POLYLINE FACILITIES(3P) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE POLYLINE FACILITIES − inquire list of polyline facilities from workstation description table
SYNOPSIS
C Syntax
void
pinq_line_facs ( type, length, start, error_ind, facilities, total_length )
Pinttype;workstation type
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pline_facs∗facilities;OUT polyline facilities
Pint∗total_length;OUT length of list in PHIGS
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
INQUIRE POLYLINE FACILITIES obtains a list of the polyline facilities supported on the specified type of workstation.
C Input Parameters
typeGet the polyline facilities for this workstation type.
lengthThe number of ints in the facilities→types→ints output parameter for which the application has allocated memory. length is the number of list elements that the system can return in types→ints. If a value of 0 is used here, no data will be returned in the types→ints list, but the total number of elements will be returned in total_length.
startStarting position of inquiry. The elements in the list, beginning with the item number specified by start, are copied sequentially into types→ints until types→ints is full or all the elements have been copied.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
facilities
A pointer to a structure in which the system returns the portion of the list of polyline facilities from the workstation description table, starting with start. Pline_facs is defined in phigs.h as:
typedef struct {
Pint_listtypes;/∗ list of line types ∗/
Pintwidths;/∗ number of available line widths ∗/
Pintnum_widths;/∗ number of available line widths ∗/
Pfloatnom_width;/∗ nominal line width ∗/
Pfloatmin_width;/∗ minimum line width ∗/
Pfloatmax_width;/∗ maximum line width ∗/
Pintnum_pred_inds;/∗ number of predefined bundles ∗/
} Pline_facs;
And Pint_list is defined in phigs.h as:
typedef struct {
Pint num_ints;/∗ number of integers ∗/
Pint∗ints;/∗ list of integers ∗/
} Pint_list;
Prior to calling this function, the ints field of the Pint_list structure must contain a pointer to an application supplied buffer. This buffer must be at least as large as the corresponding length parameter.
total_length
A pointer to an integer in which to return the total length of the list. This is the value required for length if all the items in the list are to be returned.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type
052Ignoring function, workstation type not recognized by the implementation
059Ignoring function, the specified workstation does not have output capability (in other words, the workstation category is neither OUTPUT, OUTIN, nor MO)
062Ignoring function, this information is not available for this MO workstation type
SEE ALSO
PHIGS WORKSTATION DESCRIPTION TABLE (7P)
September 02, 1992