OfCCC.c revision 61b2299d
1/* $Xorg: OfCCC.c,v 1.3 2000/08/17 19:44:47 cpqbld Exp $ */ 2 3/* 4 * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc. 5 * All Rights Reserved 6 * 7 * This file is a component of an X Window System-specific implementation 8 * of Xcms based on the TekColor Color Management System. Permission is 9 * hereby granted to use, copy, modify, sell, and otherwise distribute this 10 * software and its documentation for any purpose and without fee, provided 11 * that this copyright, permission, and disclaimer notice is reproduced in 12 * all copies of this software and in supporting documentation. TekColor 13 * is a trademark of Tektronix, Inc. 14 * 15 * Tektronix makes no representation about the suitability of this software 16 * for any purpose. It is provided "as is" and with all faults. 17 * 18 * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE, 19 * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 * PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY 21 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER 22 * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF 23 * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 24 * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE. 25 * 26 * 27 * NAME 28 * XcmsOfCCC.c - Color Conversion Context Querying Routines 29 * 30 * DESCRIPTION 31 * Routines to query components of a Color Conversion 32 * Context structure. 33 * 34 * 35 */ 36 37#ifdef HAVE_CONFIG_H 38#include <config.h> 39#endif 40#include "Xlib.h" 41#include "Xcms.h" 42 43 44 45/************************************************************************ 46 * * 47 * PUBLIC INTERFACES * 48 * * 49 ************************************************************************/ 50 51/* 52 * NAME 53 * XcmsDisplayOfCCC 54 * 55 * SYNOPSIS 56 */ 57 58Display * 59XcmsDisplayOfCCC( 60 XcmsCCC ccc) 61/* 62 * DESCRIPTION 63 * Queries the Display of the specified CCC. 64 * 65 * RETURNS 66 * Pointer to the Display. 67 * 68 */ 69{ 70 return(ccc->dpy); 71} 72 73 74/* 75 * NAME 76 * XcmsVisualOfCCC 77 * 78 * SYNOPSIS 79 */ 80 81Visual * 82XcmsVisualOfCCC( 83 XcmsCCC ccc) 84/* 85 * DESCRIPTION 86 * Queries the Visual of the specified CCC. 87 * 88 * RETURNS 89 * Pointer to the Visual. 90 * 91 */ 92{ 93 return(ccc->visual); 94} 95 96 97/* 98 * NAME 99 * XcmsScreenNumberOfCCC 100 * 101 * SYNOPSIS 102 */ 103 104int 105XcmsScreenNumberOfCCC( 106 XcmsCCC ccc) 107/* 108 * DESCRIPTION 109 * Queries the screen number of the specified CCC. 110 * 111 * RETURNS 112 * screen number. 113 * 114 */ 115{ 116 return(ccc->screenNumber); 117} 118 119 120/* 121 * NAME 122 * XcmsScreenWhitePointOfCCC 123 * 124 * SYNOPSIS 125 */ 126 127XcmsColor * 128XcmsScreenWhitePointOfCCC( 129 XcmsCCC ccc) 130/* 131 * DESCRIPTION 132 * Queries the screen white point of the specified CCC. 133 * 134 * RETURNS 135 * Pointer to the XcmsColor containing the screen white point. 136 * 137 */ 138{ 139 return(&ccc->pPerScrnInfo->screenWhitePt); 140} 141 142 143/* 144 * NAME 145 * XcmsClientWhitePointOfCCC 146 * 147 * SYNOPSIS 148 */ 149 150XcmsColor * 151XcmsClientWhitePointOfCCC( 152 XcmsCCC ccc) 153/* 154 * DESCRIPTION 155 * Queries the client white point of the specified CCC. 156 * 157 * RETURNS 158 * Pointer to the XcmsColor containing the client white point. 159 * 160 */ 161{ 162 return(&ccc->clientWhitePt); 163} 164