.\" .\" $XConsortium: p098,v 5.2 94/04/17 20:55:28 rws Exp $ .\" .\" $XMCOPY .\" Copyright (c) 1990, 1991 by Sun Microsystems, Inc. and the X Consortium. .\" .\" All Rights Reserved .\" .\" Permission to use, copy, modify, and distribute this software and its .\" documentation for any purpose and without fee is hereby granted, .\" provided that the above copyright notice appear in all copies and that .\" both that copyright notice and this permission notice appear in .\" supporting documentation, and that the names of Sun Microsystems, .\" and the X Consortium not be used in advertising or publicity .\" pertaining to distribution of the software without specific, written .\" prior permission. .\" .\" SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, .\" INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO .\" EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR .\" CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF .\" USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR .\" OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .TH "INQUIRE COLOUR MODEL" 3P "29 February 1991" .SH NAME INQUIRE COLOUR MODEL \- inquire a workstation's current colour model .IX "Colour" "INQUIRE COLOUR MODEL" .SH SYNOPSIS .SS C Syntax .ft B .ta 1.25i 3i .nf void pinq_colr_model ( ws, error_ind, model ) Pint ws; \fIworkstation identifier\fP Pint *error_ind; \fI\s-2OUT\s+2 error indicator\fP Pint *model; \fI\s-2OUT\s+2 current colour model\fP .fi .ft R .SS Required PHIGS Operating States (PHOP, WSOP, *, *) .SH DESCRIPTION .SS Purpose Use \s-2INQUIRE COLOUR MODEL\s+2 to determine the current colour model from a specified PHIGS workstation state list. .LP .SS C Input Parameters .IP \fIws\fP The workstation identifier of the workstation whose workstation state list is queried. .SS C Output Parameters .IP \fIerror_ind\fP A pointer to the location to store the error number of any error detected by this function. .IP \fImodel\fP A pointer to a location in which the system returns the current colour model. The possible colour models are as follows: .nf .ta .5i +.5i 0 \s-2PINDIRECT\s+2 1 \s-2PMODEL_RGB\s+2 2 \s-2PMODEL_CIELUV\s+2 3 \s-2PMODEL_HSV\s+2 4 \s-2PMODEL_HLS\s+2 .fi .SH ERRORS .IP 003 Ignoring function, function requires state (\s-2PHOP, WSOP, *, *\s+2) .IP 054 Ignoring function, the specified workstation is not open .IP 059 Ignoring function, the specified workstation does not have output capability (that is, the workstation category is neither \s-2OUTPUT\s+2, \s-2OUTIN\s+2, nor \s-2MO\s+2) .SH SEE ALSO .nf .IP .ta 0.5i .SM "INQUIRE COLOUR MODEL FACILITIES (3P)" .SM "SET COLOUR MODEL (3P)" .fi