[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 Widget Writer's Guide


XmeGetDefaultPixel

Generates colors based on the screen background color

Format

#include <Xm/XmP.h>
void XmeGetDefaultPixelWidget
widgetint typeint
offsetXrmValue *value

DESCRIPTION

XmeGetDefaultPixel generates a color associated with a logical component of a widget. For example, you can use XmeGetDefaultPixel to 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.


[ Previous | Next | Contents | Glossary | Home | Search ]