SgColorChooserSetCurrentColor(3X)SgColorChooserSetCurrentColor(3X)NAMESgColorChooserSetCurrentColor — A ColorChooser function that sets the
selected color of the ColorChooser without changing the stored color
SYNOPSIS
#include <Sgm/ColorC.h>
void SgColorChooserSetCurrentColor (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.
DESCRIPTIONSgColorChooserSetCurrentColor sets the currents selected color of the
given ColorChooser 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.
The difference between SgColorChooserSetCurrentColor and SgColor‐
ChooserSetColor is that SgColorChooserSetCurrentColor does not alter
the value of the Stored Color color swatch. Specifies the ColorChooser
widget ID. Specifies the red color component in an RGB color space.
Specifies the green color component in an RGB color space. Specifies
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), SgColorChooserSetColor(3X), SgColorChooserGetColor(3X), SgCol‐
orChooserSetStoredColor(3X), and RGBColor(3G).
SgColorChooserSetCurrentColor(3X)