Colormap objects are used to represent the Colormap type. A Colormap object can be obtained using the widget method CreateColormap (which also needs a Visual Info object) or the widget method DefaultColormapOfScreen. A Colormap object can be used in the widget method SetWindowColormap and as the colormap resource of widgets.
Colormap objects (cm_objects) have the following methods:
red, green, blue) |
(pixel, red, green, blue, flags)
.
This function corresponds with XAllocColor.
contig, nplanes, npixels) |
(plane_masks_list, pixels_list)
.
This function corresponds with XAllocColorCells.
color_name) |
((screen_def.pixel, screen_def.red, screen_def.green, screen_def.blue, screen_def.flags), (exact_def.pixel, exact_def.red, exact_def.green, exact_def.blue, exact_def.flags))
.
This function corresponds with XAllocNamedColor.
) |
cm_object
.
This function corresponds with XCopyColormapAndFree.
pixel_list, planes) |
) |
) |
color_name) |
((exact_def.pixel, exact_def.red, exact_def.green, exact_def.blue, exact_def.flags), (screen_def.pixel, screen_def.red, screen_def.green, screen_def.blue, screen_def.flags))
.
This function corresponds with XLookupColor.
color_name) |
(pixel, red, green, blue, flags)
.
This function corresponds with XParseColor.
pixel) |
(pixel, red, green, blue, flags)
.
This function corresponds with XQueryColor.
pixel_list) |
XColor_list
.
This function corresponds with XQueryColors.
color_list) |