24 #define V_colormap_h 1
28 #include <X11/Intrinsic.h>
31 #include <X11/Xfuncproto.h>
42 typedef struct V_ColormapRec {
48 XStandardColormap stdcmap;
53 unsigned long *indcmap;
54 VBoolean *indcmap_alloced;
58 unsigned long *invgmap;
59 VBoolean *invgmap_alloced;
67 #define VColormapColormap(vc) ((vc)->stdcmap.colormap)
68 #define VColormapDepth(vc) ((vc)->vinfo.depth)
69 #define VColormapProperty(vc) ((vc)->property)
70 #define VColormapVisual(vc) ((vc)->vinfo.visual)
77 extern VColormap VCreateColormap (
78 #
if NeedFunctionPrototypes
86 extern void VDestroyColormap (
87 #
if NeedFunctionPrototypes
92 extern void VColormapRGBPixel (
93 #
if NeedFunctionPrototypes
99 extern void VColormapGrayPixel (
100 #
if NeedFunctionPrototypes