1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Manipulation of colors and colormaps
7 <!-- ##### SECTION Long_Description ##### -->
9 These functions are used to modify colormaps.
10 A colormap is an object that contains the mapping
11 between the color values stored in memory and
12 the RGB values that are used to display color
13 values. In general, colormaps only contain
14 significant information for pseudo-color visuals,
15 but even for other visual types, a colormap object
16 is required in some circumstances.
20 There are a couple of special colormaps that can
21 be retrieved. The system colormap (retrieved
22 with gdk_colormap_get_system()) is the default
23 colormap of the system. If you are using GdkRGB,
24 there is another colormap that is important - the
25 colormap in which GdkRGB works, retrieved with
26 gdk_rgb_get_colormap(). However, when using GdkRGB,
27 it is not generally necessary to allocate colors
32 In previous revisions of this interface, a number
33 of functions that take a #GdkColormap parameter
34 were replaced with functions whose names began
38 <!-- ##### SECTION See_Also ##### -->
43 <!-- ##### SECTION Stability_Level ##### -->
46 <!-- ##### SECTION Image ##### -->
49 <!-- ##### STRUCT GdkColor ##### -->
51 The #GdkColor structure is used to describe an
52 allocated or unallocated color.
55 @pixel: For allocated colors, the value used to
56 draw this color on the screen.
57 @red: The red component of the color. This is
58 a value between 0 and 65535, with 65535 indicating
60 @green: The green component of the color.
61 @blue: The blue component of the color.
63 <!-- ##### STRUCT GdkColormap ##### -->
65 The colormap structure contains the following public fields.
69 <!-- ##### FUNCTION gdk_colormap_new ##### -->
78 <!-- ##### FUNCTION gdk_colormap_get_system ##### -->
86 <!-- ##### FUNCTION gdk_colormap_alloc_colors ##### -->
99 <!-- ##### FUNCTION gdk_colormap_alloc_color ##### -->
110 <!-- ##### FUNCTION gdk_colormap_free_colors ##### -->
119 <!-- ##### FUNCTION gdk_colormap_get_visual ##### -->
127 <!-- ##### FUNCTION gdk_colormap_get_screen ##### -->
136 <!-- ##### FUNCTION gdk_color_copy ##### -->
144 <!-- ##### FUNCTION gdk_color_free ##### -->
151 <!-- ##### FUNCTION gdk_color_parse ##### -->
160 <!-- ##### FUNCTION gdk_color_equal ##### -->
169 <!-- ##### FUNCTION gdk_color_hash ##### -->
177 <!-- ##### FUNCTION gdk_color_to_string ##### -->