pinq_colr_facs(3g) — Subroutines
Name
pinq_colr_facs − Returns color information.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pinq_colr_facs (
Pint wstype, /∗ (I) Workstation type ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pcolr_facs ∗facilities /∗ (O) Available color facilities ∗/
)
Data Structures
typedef struct {
Pint num_colrs; /∗ number of colors ∗/
Pcolr_avail colr_avail; /∗ color availability ∗/
Pint num_pred_inds; /∗ number of predefined bundle
indexes ∗/
Pcieluv prim_colrs[3]; /∗ primary colors ∗/
} Pcolr_facs;
typedef enum {
PAVAIL_MONOCHR, /∗ black and white device ∗/
PAVAIL_COLR /∗ color device ∗/
} Pcolr_avail;
typedef struct {
Pfloat cieluv_x; /∗ x coefficient ∗/
Pfloat cieluv_y; /∗ y coefficient ∗/
Pfloat cieluv_y_lum; /∗ y luminance ∗/
} Pcieluv;
Description
pinq_colr_facs queries the workstation description table and returns an error indicator, the number of colors, whether this is a color or a black and white device, and the number of predefined color indexes.
See Also
pinq_pred_colr_rep
pinq_ws_conn_type
pset_colr_rep