Colormap.allocColor

Allocates a single color from a colormap.

class Colormap
int
allocColor

Parameters

color GdkColor

the color to allocate. On return the pixel field will be filled in if allocation succeeds.

writeable int

If TRUE, the color is allocated writeable (their values can later be changed using gdk_color_change()). Writeable colors cannot be shared between applications.

bestMatch int

If TRUE, GDK will attempt to do matching against existing colors if the color cannot be allocated as requested.

Return Value

Type: int

TRUE if the allocation succeeded.

Meta