Colormap.colorsAlloc

Warning gdk_colors_alloc is deprecated and should not be used in newly-written code. Allocates 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().

class Colormap
int
colorsAlloc

Parameters

contiguous int

if TRUE, the colors should be allocated in contiguous color cells.

planes gulong[]

an array in which to store the plane masks.

pixels gulong[]

an array into which to store allocated pixel values.

Return Value

Type: int

TRUE if the allocation was successful

Meta