colormapst.h revision f0ab104f070bc7f569404826fea1828ed985638c
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCopyright 1987, 1998 The Open Group
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncPermission to use, copy, modify, distribute, and sell this software and its
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation for any purpose is hereby granted without fee, provided that
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncthe above copyright notice appear in all copies and that both that
f0ab104f070bc7f569404826fea1828ed985638cvboxsynccopyright notice and this permission notice appear in supporting
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncThe above copyright notice and this permission notice shall be included in
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncall copies or substantial portions of the Software.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncExcept as contained in this notice, the name of The Open Group shall not be
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncused in advertising or otherwise to promote the sale, use or other dealings
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncin this Software without prior written authorization from The Open Group.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync All Rights Reserved
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncPermission to use, copy, modify, and distribute this software and its
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncdocumentation for any purpose and without fee is hereby granted,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncprovided that the above copyright notice appear in all copies and that
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncboth that copyright notice and this permission notice appear in
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncsupporting documentation, and that the name of Digital not be
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncused in advertising or publicity pertaining to distribution of the
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncsoftware without specific, written prior permission.
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
f0ab104f070bc7f569404826fea1828ed985638cvboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* Shared color -- the color is used by AllocColorPlanes */
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct
f0ab104f070bc7f569404826fea1828ed985638cvboxsync unsigned short color;
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* LOCO -- a local color for a PseudoColor cell. DirectColor maps always
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * use the first value (called red) in the structure. What channel they
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * are really talking about depends on which map they are in. */
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* SHCO -- a shared color for a PseudoColor cell. Used with AllocColorPlanes.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * DirectColor maps always use the first value (called red) in the structure.
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * What channel they are really talking about depends on which map they
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * are in. */
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* color map entry */
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct _CMEntry
f0ab104f070bc7f569404826fea1828ed985638cvboxsync/* COLORMAPs can be used for either Direct or Pseudo color. PseudoColor
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * only needs one cell table, we arbitrarily pick red. We keep track
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * of that table with freeRed, numPixelsRed, and clientPixelsRed */
f0ab104f070bc7f569404826fea1828ed985638cvboxsynctypedef struct _ColormapRec
f0ab104f070bc7f569404826fea1828ed985638cvboxsync ScreenPtr pScreen; /* screen map is associated with */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync * 2 = AllAllocated */
f0ab104f070bc7f569404826fea1828ed985638cvboxsync#endif /* COLORMAP_H */