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 | |
change | Changes the value of the first ncolors in a private colormap to match the values in the colors array in the colormap. |
get_screen | Gets the screen for which this colormap was created. |
get_system | Gets the system's default colormap for the default screen. |
get_system_size | Returns the size of the system's default colormap. |
get_visual | Returns the visual for which a given colormap was created. |
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.
For pseudo-color colormaps, the number of colors in the colormap.
For pseudo-color colormaps, the number of colors in the colormap.
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().
Gets the screen for which this colormap was created.
GdkColormap.get_screen()
Return | the screen for which this colormap was created. |
Gets the system's default colormap for the default screen.
GdkColormap.get_system()
Return | the default colormap. |
Returns the size of the system's default colormap.
GdkColormap.get_system_size()
Return | the size of the system's default colormap. |
Returns the visual for which a given colormap was created.
GdkColormap.get_visual()
Return | the visual of the colormap. |