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