1 |
|
---|
2 | #include "colormapst.h"
|
---|
3 |
|
---|
4 | #ifndef _MICMAP_H_
|
---|
5 | #define _MICMAP_H_
|
---|
6 |
|
---|
7 | #define GetInstalledmiColormap(s) \
|
---|
8 | ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
|
---|
9 | #define SetInstalledmiColormap(s,c) \
|
---|
10 | (dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
|
---|
11 |
|
---|
12 | extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
|
---|
13 |
|
---|
14 | #define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
|
---|
15 |
|
---|
16 | typedef Bool (*miInitVisualsProcPtr) (VisualPtr *, DepthPtr *, int *, int *,
|
---|
17 | int *, VisualID *, unsigned long, int,
|
---|
18 | int);
|
---|
19 |
|
---|
20 | extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen,
|
---|
21 | Colormap * pmaps);
|
---|
22 | extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
|
---|
23 | extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
|
---|
24 |
|
---|
25 | extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *,
|
---|
26 | unsigned short *, VisualPtr);
|
---|
27 | extern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
|
---|
28 | extern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *,
|
---|
29 | xColorItem *);
|
---|
30 | extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
|
---|
31 | extern _X_EXPORT void miClearVisualTypes(void);
|
---|
32 | extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
|
---|
33 | extern _X_EXPORT Bool miSetPixmapDepths(void);
|
---|
34 | extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals,
|
---|
35 | int bitsPerRGB, int preferredCVC,
|
---|
36 | Pixel redMask, Pixel greenMask,
|
---|
37 | Pixel blueMask);
|
---|
38 | extern _X_EXPORT int miGetDefaultVisualMask(int);
|
---|
39 | extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *,
|
---|
40 | int *, VisualID *, unsigned long, int, int);
|
---|
41 |
|
---|
42 | #define MAX_PSEUDO_DEPTH 10
|
---|
43 | #define MIN_TRUE_DEPTH 6
|
---|
44 |
|
---|
45 | #define StaticGrayMask (1 << StaticGray)
|
---|
46 | #define GrayScaleMask (1 << GrayScale)
|
---|
47 | #define StaticColorMask (1 << StaticColor)
|
---|
48 | #define PseudoColorMask (1 << PseudoColor)
|
---|
49 | #define TrueColorMask (1 << TrueColor)
|
---|
50 | #define DirectColorMask (1 << DirectColor)
|
---|
51 |
|
---|
52 | #define ALL_VISUALS (StaticGrayMask|\
|
---|
53 | GrayScaleMask|\
|
---|
54 | StaticColorMask|\
|
---|
55 | PseudoColorMask|\
|
---|
56 | TrueColorMask|\
|
---|
57 | DirectColorMask)
|
---|
58 |
|
---|
59 | #define LARGE_VISUALS (TrueColorMask|\
|
---|
60 | DirectColorMask)
|
---|
61 |
|
---|
62 | #define SMALL_VISUALS (StaticGrayMask|\
|
---|
63 | GrayScaleMask|\
|
---|
64 | StaticColorMask|\
|
---|
65 | PseudoColorMask)
|
---|
66 |
|
---|
67 | #endif /* _MICMAP_H_ */
|
---|