SgColorChooserGetColor(3X)SgColorChooserGetColor(3X)NAMESgColorChooserGetColor — A ColorChooser function that gets the selected
color of the ColorChooser
SYNOPSIS
#include <Sgm/ColorC.h>
void SgColorChooserGetColor (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.
DESCRIPTIONSgColorChooserGetColor gets the currently selected color of the given
ColorChooser widget.
Specifies the ColorChooser widget ID Specifies a pointer to hold the
returned red color component in RGB color space. Specifies a pointer
to hold the returned green color component in RGB color space. Speci‐
fies a pointer to hold the returned blue color component in 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), SgColorChooserSetCurrentColor(3X),
SgColorChooserSetStoredColor(3X), and RGBColor(3G).
SgColorChooserGetColor(3X)