VirtualBox

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

Last change on this file since 78293 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
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_ */
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