SgColorChooserSetCurrentColor(3X)

SgColorChooserSetCurrentColor -- A ColorChooser function that sets the se- lected color of the ColorChooser without changing the stored color

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     SgColorChooserSetCurrentColor  -- A ColorChooser function that sets the se-
     lected 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  Color-
     Chooser,  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 SgColorChooserSet-
     Color 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  inten-
     sity).  This is the same range used by Iris GL (RGBColor(3G)).

     For  a  complete  definition  of ColorChooser widget and its associated re-
     sources, see SgColorChooser(3X).

RELATED INFORMATION
     SgColorChooser(3X).  SgCreateColorChooser(3X), SgCreateColorChooserDia-
     log(3X), SgColorChooserSetColor(3X), SgColorChooserGetColor(3X), SgColor-
     ChooserSetStoredColor(3X), and RGBColor(3G).



                                               SgColorChooserSetCurrentColor(3X)