Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XmGetColorCalculation(3X)

XmSetColorCalculation(3X)

XmGetColors(3X)  —  Subroutines

OSF

NAME

XmGetColors — a function that generates foreground, select, and shadow colors.

SYNOPSIS

#include <Xm/Xm.h> void XmGetColors (screen, colormap, background, foreground, top_shadow, bottom_shadow, select)
Screen∗ screen;
Colormapcolormap;
Pixelbackground;
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. 

screenSpecifies the screen for which these colors should be allocated

colormapSpecifies 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 returned for this color.

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

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

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

RELATED INFORMATION

XmGetColorCalculation(3X) and XmSetColorCalculation(3X). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026