// Constructor that is called from the "Screen" class. internal Colormap(Display dpy, Screen screen, XColormap colormap) { this.dpy = dpy; this.screen = screen; this.colormap = colormap; this.cachedPixels = new Hashtable(1024); // create hash with big capacity to avoid expansions of hashtable }
extern public static XStatus XagCreateEmbeddedApplicationGroup (IntPtr display, XVisualID root_visual, XColormap default_colormap, XPixel black_pixel, XPixel white_pixel, out XAppGroup app_group);
extern public static int XAllocColor (IntPtr display, XColormap colormap, ref XColor xcolor);