11.5Class GdkColormap

The GdkColormap structure is used to describe an allocated or unallocated color.

Class GdkColormap( visual, allocate )
visual a GdkVisual.
allocate if true, the newly created colormap will be a private colormap, and all colors in it will be allocated for the applications use.
Properties
colors An array containing the current values in the colormap.
size For pseudo-color colormaps, the number of colors in the colormap.
Methods
changeChanges the value of the first ncolors in a private colormap to match the values in the colors array in the colormap.
get_screenGets the screen for which this colormap was created.
get_systemGets the system's default colormap for the default screen.
get_system_sizeReturns the size of the system's default colormap.
get_visualReturns the visual for which a given colormap was created.

Properties

colors

An array containing the current values in the colormap.

An array containing the current values in the colormap. This can be used to map from pixel values back to RGB values. This is only meaningful for pseudo-color colormaps.

size

For pseudo-color colormaps, the number of colors in the colormap.

For pseudo-color colormaps, the number of colors in the colormap.

Methods

change

Changes the value of the first ncolors in a private colormap to match the values in the colors array in the colormap.

GdkColormap.change( ncolors )
ncolors the number of colors to change.

This function is obsolete and should not be used. See gdk_color_change().

get_screen

Gets the screen for which this colormap was created.

GdkColormap.get_screen()
Returnthe screen for which this colormap was created.

get_system

Gets the system's default colormap for the default screen.

GdkColormap.get_system()
Returnthe default colormap.

get_system_size

Returns the size of the system's default colormap.

GdkColormap.get_system_size()
Returnthe size of the system's default colormap.

get_visual

Returns the visual for which a given colormap was created.

GdkColormap.get_visual()
Returnthe visual of the colormap.
Made with http://www.falconpl.org