VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/dmxcmap.h

最後變更 在這個檔案是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.4 KB
 
1/* $XFree86$ */
2/*
3 * Copyright 2002-2004 Red Hat Inc., Durham, North Carolina.
4 *
5 * All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining
8 * a copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation on the rights to use, copy, modify, merge,
11 * publish, distribute, sublicense, and/or sell copies of the Software,
12 * and to permit persons to whom the Software is furnished to do so,
13 * subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice (including the
16 * next paragraph) shall be included in all copies or substantial
17 * portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
23 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 */
28
29/*
30 * Authors:
31 * Kevin E. Martin <[email protected]>
32 *
33 */
34
35/** \file
36 * Header file for colormap support. \see dmxcmap.c. */
37
38#ifndef DMXCMAP_H
39#define DMXCMAP_H
40
41#include "colormapst.h"
42
43/** Colormap private area. */
44typedef struct _dmxColormapPriv {
45 Colormap cmap;
46} dmxColormapPrivRec, *dmxColormapPrivPtr;
47
48
49extern Bool dmxCreateColormap(ColormapPtr pColormap);
50extern void dmxDestroyColormap(ColormapPtr pColormap);
51extern void dmxInstallColormap(ColormapPtr pColormap);
52extern void dmxStoreColors(ColormapPtr pColormap, int ndef, xColorItem *pdef);
53
54extern Bool dmxCreateDefColormap(ScreenPtr pScreen);
55
56extern Bool dmxBECreateColormap(ColormapPtr pColormap);
57extern Bool dmxBEFreeColormap(ColormapPtr pColormap);
58
59/** Private index. \see dmxcmap.c \see dmxscrinit.c \see dmxwindow.c */
60extern int dmxColormapPrivateIndex;
61
62/** Set colormap private structure. */
63#define DMX_SET_COLORMAP_PRIV(_pCMap, _pCMapPriv) \
64 (_pCMap)->devPrivates[dmxColormapPrivateIndex].ptr \
65 = (pointer)(_pCMapPriv);
66
67/** Get colormap private structure. */
68#define DMX_GET_COLORMAP_PRIV(_pCMap) \
69 (dmxColormapPrivPtr)(_pCMap)->devPrivates[dmxColormapPrivateIndex].ptr
70
71#endif /* DMXCMAP_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette