<!-- $XConsortium: GetCols.sgm /main/8 1996/09/08 20:45:39 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN248.rsml.1">
<RefMeta>
<RefEntryTitle>XmGetColors</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmGetColors</Function></RefName>
<RefPurpose>A function that generates foreground, select, and shadow colors
<IndexTerm>
<Primary>XmGetColors</Primary>
</IndexTerm><IndexTerm>
<Primary>Color functions</Primary>
<Secondary>XmGetColors</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>void <Function>XmGetColors</Function></FuncDef>
<!--<ParamDef><Replaceable>screen, colormap, background, foreground, top_shadow,
bottom_shadow, select</Replaceable></ParamDef>-->
<ParamDef>Screen <Parameter>* screen</Parameter></ParamDef>
<ParamDef>Colormap <Parameter>colormap</Parameter></ParamDef>
<ParamDef>Pixel <Parameter>background</Parameter></ParamDef>
<ParamDef>Pixel <Parameter>* foreground</Parameter></ParamDef>
<ParamDef>Pixel <Parameter>* top_shadow</Parameter></ParamDef>
<ParamDef>Pixel <Parameter>* bottom_shadow</Parameter></ParamDef>
<ParamDef>Pixel <Parameter>* select</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmGetColors</Function> takes a screen, a colormap, and a background pixel,
and returns pixel values for foreground, select, and shadow colors.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">screen</Symbol></Term>
<ListItem>
<Para>Specifies the screen for which these colors should be allocated.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">colormap</Symbol></Term>
<ListItem>
<Para>Specifies the colormap from which these colors should be allocated.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">background</Symbol></Term>
<ListItem>
<Para>Specifies the background on which the colors should be based.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">foreground</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to the returned foreground pixel value.
If this argument is NULL, no value is allocated or returned for this color.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">top_shadow</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to the returned top shadow pixel value.
If this argument is NULL, no value is allocated or returned for this color.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">bottom_shadow</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to the returned bottom shadow pixel value.
If this argument is NULL, no value is allocated or returned for this color.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">select</Symbol></Term>
<ListItem>
<Para>Specifies a pointer to the returned select pixel value.
If this argument is NULL, no value is allocated or returned for this color.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmChangeColor;,
&cdeman.XmGetColorCalculation;, and
&cdeman.XmSetColorCalculation;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
