DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

XmGetColors(Xm)


XmGetColors -- a function that generates foreground, select, and shadow colors

Syntax

#include <Xm/Xm.h>

void XmGetColors (screen, colormap, background, foreground, top_shadow, bottom_shadow, select) Screen * screen; Colormap colormap; Pixel background; Pixel * foreground; Pixel * top_shadow; Pixel * bottom_shadow; Pixel * select;

Description

XmGetColors takes a screen, a colormap, and a background pixel, and it returns pixel values for foreground, select, and shadow colors.

screen
Specifies the screen for which these colors should be allocated

colormap
Specifies the colormap from which these colors should be allocated

background
Specifies the background on which the colors should be based

foreground
Specifies a pointer to the returned foreground pixel value. If this argument is NULL no value is allocated or returned for this color.

top_shadow
Specifies a pointer to the returned top shadow pixel value. If this argument is NULL no value is allocated or returned for this color.

bottom_shadow
Specifies a pointer to the returned bottom shadow pixel value. If this argument is NULL no value is allocated or returned for this color.

select
Specifies a pointer to the returned select pixel value. If this argument is NULL no value is allocated or returned for this color.

See also

XmChangeColor(Xm), XmGetColorCalculation(Xm) and
XmSetColorCalculation(Xm).
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003