VirtualBox

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

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

Additions/x11: added a full header set for X.Org server 1.5 and 1.6

  • Property svn:eol-style set to native
File size: 1.7 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
13int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
14void miInstallColormap(ColormapPtr pmap);
15void miUninstallColormap(ColormapPtr pmap);
16
17void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
18 VisualPtr);
19Bool miInitializeColormap(ColormapPtr);
20int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
21Bool miCreateDefColormap(ScreenPtr);
22void miClearVisualTypes(void);
23Bool miSetVisualTypes(int, int, int, int);
24Bool miSetPixmapDepths(void);
25Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
26 int preferredCVC,
27 Pixel redMask, Pixel greenMask, Pixel blueMask);
28int miGetDefaultVisualMask(int);
29Bool 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_ */
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