44 lines
1.7 KiB
C
44 lines
1.7 KiB
C
#ifndef _MICMAP_H_
|
|
#define _MICMAP_H_
|
|
|
|
#include <X11/X.h>
|
|
#include <X11/Xdefs.h>
|
|
#include <X11/Xfuncproto.h>
|
|
|
|
#include "colormap.h"
|
|
#include "privates.h"
|
|
#include "screenint.h"
|
|
|
|
extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
|
|
|
|
#define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
|
|
|
|
extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen,
|
|
Colormap * pmaps);
|
|
extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
|
|
extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
|
|
|
|
extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *,
|
|
unsigned short *, VisualPtr);
|
|
extern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
|
|
extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
|
|
extern _X_EXPORT void miClearVisualTypes(void);
|
|
extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
|
|
extern _X_EXPORT Bool miSetPixmapDepths(void);
|
|
extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals,
|
|
int bitsPerRGB, int preferredCVC,
|
|
Pixel redMask, Pixel greenMask,
|
|
Pixel blueMask);
|
|
extern _X_EXPORT int miGetDefaultVisualMask(int);
|
|
extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *,
|
|
int *, VisualID *, unsigned long, int, int);
|
|
|
|
#define MAX_PSEUDO_DEPTH 10
|
|
|
|
#define StaticColorMask (1 << StaticColor)
|
|
#define PseudoColorMask (1 << PseudoColor)
|
|
#define TrueColorMask (1 << TrueColor)
|
|
#define DirectColorMask (1 << DirectColor)
|
|
|
|
#endif /* _MICMAP_H_ */
|