SgColorChooserSetColor(3X)SgColorChooserSetColor(3X)NAMESgColorChooserSetColor — A ColorChooser function that sets the selected
color of the ColorChooser
SYNOPSIS
#include <Sgm/ColorC.h>
void SgColorChooserSetColor (widget, red, green, blue) Wid‐
get widget; short red; short green;
short blue;
VERSION
This page documents the version of Sgm that accompanies Motif 1.2.
DESCRIPTIONSgColorChooserSetColor sets the selected color of the given Color‐
Chooser widget. This means that all the components of the ColorChooser,
the color hexagon, color sliders, color swatches, and color value text
widgets will all reflect the new color. The given color must be in RGB
color space.
Specifies the ColorChooser widget ID. Specified the red color compo‐
nent in an RGB color space. Specified the green color component in an
RGB color space. Specified the blue color component in an RGB color
space.
The color components range from 0 (no intensity) to 255 (maximum inten‐
sity). This is the same range used by Iris GL (RGBColor(3G)).
For a complete definition of ColorChooser widget and its associated
resources, see SgColorChooser(3X).
RELATED INFORMATIONSgColorChooser(3X). SgCreateColorChooser(3X), SgCreateColorChooserDia‐
log(3X), SgColorChooserGetColor(3X), SgColorChooserSetCurrentColor(3X),
SgColorChooserSetStoredColor(3X), and RGBColor(3G).
SgColorChooserSetColor(3X)