XmChangeColor(3)

XmChangeColor3

Recalculates all associated colors of a widget

Usage

#include <Xm/Xm.h>
void XmChangeColor(
Widget widget,
Pixel background);

Overview

XmChangeColor handles all color modifications for the specified widget when a new background pixel value is specified. This function recalculates the foreground, select, and shadow colors based on the new background color and sets the corresponding resources for the widget. If a color calculation procedure has been set by a call to XmSetColorCalculation, XmChangeColor uses that procedure to calculate the new colors. Otherwise, the routine uses a default procedure.

widget

Specifies the widget ID whose colors will be updated

background

Specifies the background color pixel value

Releases

7 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–13
  2. Arch

From openmotif 2.3.8-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.