VirtualBox

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

Last change on this file since 32915 was 17471, checked in by vboxsync, 16 years ago

export to OSE

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