VirtualBox

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

最後變更 在這個檔案從77662是 43272,由 vboxsync 提交於 12 年 前

Additions/x11: more original X server headers.

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.8 KB
 
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_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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