VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/xorg/micmap.h@ 37801

最後變更 在這個檔案從37801是 17236,由 vboxsync 提交於 16 年 前

Additions/x11/x11include: blast! Reverted r43555 and r43556

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.9 KB
 
1/* $XFree86: xc/programs/Xserver/mi/micmap.h,v 1.5 1999/06/14 07:32:11 dawes Exp $ */
2
3#include "colormapst.h"
4
5#ifndef _MICMAP_H_
6#define _MICMAP_H_
7
8extern ColormapPtr miInstalledMaps[MAXSCREENS];
9
10typedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *,
11 int *, VisualID *, unsigned long, int,
12 int);
13
14extern miInitVisualsProcPtr miInitVisualsProc;
15
16int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
17void miInstallColormap(ColormapPtr pmap);
18void miUninstallColormap(ColormapPtr pmap);
19
20void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
21 VisualPtr);
22Bool miInitializeColormap(ColormapPtr);
23int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
24Bool miCreateDefColormap(ScreenPtr);
25void miClearVisualTypes(void);
26Bool miSetVisualTypes(int, int, int, int);
27Bool miSetPixmapDepths(void);
28Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
29 int preferredCVC,
30 Pixel redMask, Pixel greenMask, Pixel blueMask);
31int miGetDefaultVisualMask(int);
32Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *,
33 unsigned long, int, int);
34void miResetInitVisuals(void);
35
36void miHookInitVisuals(void (**old)(miInitVisualsProcPtr *),
37 void (*new)(miInitVisualsProcPtr *));
38
39
40#define MAX_PSEUDO_DEPTH 10
41#define MIN_TRUE_DEPTH 6
42
43#define StaticGrayMask (1 << StaticGray)
44#define GrayScaleMask (1 << GrayScale)
45#define StaticColorMask (1 << StaticColor)
46#define PseudoColorMask (1 << PseudoColor)
47#define TrueColorMask (1 << TrueColor)
48#define DirectColorMask (1 << DirectColor)
49
50#define ALL_VISUALS (StaticGrayMask|\
51 GrayScaleMask|\
52 StaticColorMask|\
53 PseudoColorMask|\
54 TrueColorMask|\
55 DirectColorMask)
56
57#define LARGE_VISUALS (TrueColorMask|\
58 DirectColorMask)
59
60#define SMALL_VISUALS (StaticGrayMask|\
61 GrayScaleMask|\
62 StaticColorMask|\
63 PseudoColorMask)
64
65#endif /* _MICMAP_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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