[ 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.
widgetSpecifies the widget.
typeSpecifies the component of widget for which you are requesting
information. Specify one of the following values:
XmBACKGROUNDSpecifies a request for the default background color of the screen.
XmFOREGOUNDSpecifies a request for the generated foreground color.
XmTOP_SHADOWSpecifies 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_SHADOWSpecifies 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.
XmSELECTSpecifies a request for the generated select color.
If you do not specify one of the preceding values, XmeGetDefaultPixel
returns a warning message.
offsetSpecifies 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.)
valueReturns the requested color.
RELATED
None.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]