VirtualBox

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

最後變更 在這個檔案從62425是 28062,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: header files for building X.Org server 1.8 drivers

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.9 KB
 
1
2#include "colormapst.h"
3
4#ifndef _MICMAP_H_
5#define _MICMAP_H_
6
7extern _X_EXPORT ColormapPtr miInstalledMaps[MAXSCREENS];
8
9typedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *,
10 int *, VisualID *, unsigned long, int,
11 int);
12
13extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
14extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
15extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
16
17extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
18 VisualPtr);
19extern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
20extern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
21extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
22extern _X_EXPORT void miClearVisualTypes(void);
23extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
24extern _X_EXPORT Bool miSetPixmapDepths(void);
25extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
26 int preferredCVC,
27 Pixel redMask, Pixel greenMask, Pixel blueMask);
28extern _X_EXPORT int miGetDefaultVisualMask(int);
29extern _X_EXPORT Bool 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_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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