SgColorChooserSetCurrentCoUNIX3SSgColorChooserSetCurrentColor(3X)
NAME
SgColorChooserSetCurrentColor - 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)
Widget widget;
short red;
short green;
short blue;
VERSION
This page documents the version of Sgm that accompanies
Motif 1.2.
DESCRIPTION
SgColorChooserSetCurrentColor 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
SgColorChooserSetColor is that SgColorChooserSetCurrentColor
does not alter the value of the Stored Color color swatch.
widget Specifies the ColorChooser widget ID.
red Specifies the red color component in an RGB color
space.
green Specifies the green color component in an RGB color
space.
blue Specifies the blue color component in an RGB color
space.
The color components range from 0 (no intensity) to 255
(maximum intensity). 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 INFORMATION
Page 1 (printed 4/30/98)
SgColorChooserSetCurrentCoUNIX3SSgColorChooserSetCurrentColor(3X)
SgColorChooser(3X). SgCreateColorChooser(3X),
SgCreateColorChooserDialog(3X), SgColorChooserSetColor(3X),
SgColorChooserGetColor(3X),
SgColorChooserSetStoredColor(3X), and RGBColor(3G).
Page 2 (printed 4/30/98)