IDeviceColor

The IDeviceColor class works with device-independent color indexes.

AIX Considerations

The color white is used for IDeviceColor::background. The color black is used for IDeviceColor::neutral and IDeviceColor::defaultColor.


IDeviceColor - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class.


[view class]
~IDeviceColor
public:
virtual ~IDeviceColor()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IDeviceColor
public:
IDeviceColor(DeviceColor color)

You can only construct objects of this class from a DeviceColor enumerator.

Exception

IInvalidRequest color is not a valid DeviceColor enumerator value, or the presentation system was unable to return the device color.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Color Representation

Use these members to identify the device-independent color represented by an IDeviceColor object.


[view class]
deviceColor
public:
DeviceColor deviceColor() const

Returns the DeviceColor enumerator value used to create this object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IDeviceColor - Enumerations


[view class]
DeviceColor
enum DeviceColor { defaultColor, 
                   background, 
                   neutral }

Use these enumerators to specify the device-independent color of the object you are constructing:

defaultColor
Specifies the default color of a device.
background
Specifies the background color of a device.
neutral
Specifies the neutral color of a device.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes

AIX Considerations

The color values in Motif are hard coded. The background color is white, the neutral color is black, and the defaultColor is black.


IDeviceColor - Inherited Member Functions and Data

Inherited Public Functions

IBaseColor
IColor
IMStreamable

Inherited Public Data

Inherited Protected Functions

IBaseColor
IMStreamable
IColor

Inherited Protected Data

IBaseColor