VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.13.0/micmap.h

Last change on this file was 43251, checked in by vboxsync, 12 years ago

Additions/x11: added headers for X.Org Server 1.13.

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
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
12extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
13
14#define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
15
16typedef Bool (*miInitVisualsProcPtr) (VisualPtr *, DepthPtr *, int *, int *,
17 int *, VisualID *, unsigned long, int,
18 int);
19
20extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen,
21 Colormap * pmaps);
22extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
23extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
24
25extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *,
26 unsigned short *, VisualPtr);
27extern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
28extern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *,
29 xColorItem *);
30extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
31extern _X_EXPORT void miClearVisualTypes(void);
32extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
33extern _X_EXPORT Bool miSetPixmapDepths(void);
34extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals,
35 int bitsPerRGB, int preferredCVC,
36 Pixel redMask, Pixel greenMask,
37 Pixel blueMask);
38extern _X_EXPORT int miGetDefaultVisualMask(int);
39extern _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_ */
Note: See TracBrowser for help on using the repository browser.

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