GDK Reference Manualcolormap : a GdkColormap. Returns : the visual of the colormap.
Change the value of the first ncolors colors in a private colormap. This function is obsolete and should not be used. See gdk_color_change(). colormap : a GdkColormap. colors : the new color values. ncolors : the number of colors to change.
Make a copy of a color structure. The result must be freed using gdk_color_free(). color : a GdkColor. Returns : a copy of color.
Free a color structure created with gdk_color_copy(). color : a GdkColor.
Allocate colors from a colormap. This function is obsolete. See gdk_colormap_alloc_colors(). For full documentation of the fields, see the Xlib documentation for XAllocColorCells. colormap : a GdkColormap. contiguous : if TRUE, the colors should be allocated in contiguous color cells. planes : an array in which to store the plane masks. nplanes : the number of planes to allocate. (Or zero, to indicate that the color allocation should not be planar.) pixels : an array into which to store allocated pixel values. npixels : the number of pixels in each plane to allocate. Returns :
Free colors allocated with gdk_colors_alloc(). This function is obsolete. See gdk_colormap_free_colors(). colormap : a GdkColormap. pixels : the pixel values of the colors to free. npixels : the number of values in pixels. planes : the plane masks for all planes to free, OR'd together.
Return the white color for a given colormap. The resulting value has already allocated been allocated. colormap : a GdkColormap. color : the location to store the color. Returns : TRUE if the allocation succeeded.
Return the black color for a given colormap. The resulting value has already benn allocated. colormap : a GdkColormap. color : the location to store the color. Returns : TRUE if the allocation succeeded.
Parse a textual specification of a color and fill in the red, green, and blue fields of a GdkColor structure. The color is not allocated, you must call gdk_colormap_alloc_color() yourself. The text string can be in any of the forms accepted by XParseColor; these include name for a color from rgb.txt, such as DarkSlateGray, or a hex specification such as 305050. spec : the string specifying the color. color : the GdkColor to fill in Returns :
Allocate a single color from a colormap. This function is obsolete. See gdk_colormap_alloc_color(). colormap : a GdkColormap. color : The color to allocate. On return, the pixel field will be filled in. Returns : TRUE if the allocation succeeded.
|