XmeGetDefaultPixel(3X)
XmeGetDefaultPixel - Generates colors based on the screen background color
As shipped in IRIX 6.5.22. Added in IRIX 6.5.5.
NAME XmeGetDefaultPixel - Generates colors based on the screen background color SYNOPSIS #include <Xm/XmP.h> void XmeGetDefaultPixel( Widget widget, int type, int offset, XrmValue *value); VERSION This page documents Motif 2.1. DESCRIPTION XmeGetDefaultPixel generates a color associated with a logical component of a widget. For example, you can use XmeGetDefaultPixelto find the foreground color of widget. XmeGetDefaultPixel uses the screen's background color to calculate the foreground, top shadow, bottom shadow, or select color. widget Specifies the widget. type Specifies the component of widget for which you are requesting information. Specify one of the following values: XmBACKGROUND Specifies a request for the default background color of the screen. XmFOREGOUND Specifies a request for the generated foreground color. XmTOP_SHADOW Specifies a request for the generated top shadow color. The top shadow is the portion of the shadow that is generally above and to the left of the widget. XmBOTTOM_SHADOW Specifies a request for the generated bottom shadow color. The bottom shadow is the portion of the shadow that is generally below and to the right of the widget. XmSELECT Specifies a request for the generated select color. If you do not specify one of the preceding values, XmeGetDefaultPixel returns a warning message. offset Specifies the byte offset of this field from the beginning of the widget class. (XmeGetDefaultPixel currently ignores this field; this field is provided solely for compatibility with the Intrinsics.) value Returns the requested color. RELATED None.