DOKK / manpages / debian 12 / libmotif-dev / XmGetColors.3.en
XmGetColors(3) Library Functions Manual XmGetColors(3)

XmGetColors — A function that generates foreground, select, and shadow colors "XmGetColors" "Color functions" "XmGetColors"

#include <Xm/Xm.h>
void XmGetColors(
Screen * screen,
Colormap colormap,
Pixel background,
Pixel * foreground,
Pixel * top_shadow,
Pixel * bottom_shadow,
Pixel * select);

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

Specifies the screen for which these colors should be allocated.
Specifies the colormap from which these colors should be allocated.
Specifies the background on which the colors should be based.
Specifies a pointer to the returned foreground pixel value. If this argument is NULL, no value is allocated or returned for this color.
Specifies a pointer to the returned top shadow pixel value. If this argument is NULL, no value is allocated or returned for this color.
Specifies a pointer to the returned bottom shadow pixel value. If this argument is NULL, no value is allocated or returned for this color.
Specifies a pointer to the returned select pixel value. If this argument is NULL, no value is allocated or returned for this color.

XmChangeColor(3), XmGetColorCalculation(3), and XmSetColorCalculation(3).