Color.alloc

Warning gdk_color_alloc has been deprecated since version 2.2 and should not be used in newly-written code. Use gdk_colormap_alloc_color() instead. Allocates a single color from a colormap.

class Color
static
int
alloc

Parameters

colormap Colormap

a GdkColormap.

color GdkColor

The color to allocate. On return, the pixel field will be filled in.

Return Value

Type: int

TRUE if the allocation succeeded.

Meta