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