IInheritColorAttribute

This class is used to create objects to control the inheritance of colors in child controls. The IInheritColorAttribute can be created with a value that will determine which colors are inherited.


IInheritColorAttribute - Member Functions and Data by Group

Constructors & Destructor


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

Destructor for the IInheritColorAttribute object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IInheritColorAttribute

This object helps control the inheritance of colors from the parent. An object of class IInheritColorAttribute can be created and added to an IWindow object. The EInheritColor enum that is use to construct the IInheritColorAttribute determines which color areas are inherited on Motif and Windows platforms. An IInheritColorAttribute can be constructed with an EInheritColor value or constructed from another IInheritColorAttribute object.


Overload 1
public:
IInheritColorAttribute(EInheritColor inheritColor)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
IInheritColorAttribute( const IInheritColorAttribute& inheritColorAttribute )

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Attribute Equality


[view class]
operator ==
public:
virtual bool operator ==(const IAttribute& attribute) const

Equivalence operator for the IInheritColorAttribute object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Attributes


[view class]
inheritColor
public:
EInheritColor inheritColor() const

Returns the EInheritColor value associated with the IInheritColorAttributeObject.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator =
public:
IInheritColorAttribute& operator =( const IInheritColorAttribute& inheritColorAttribute )

Assignment operator for IInheritColorAttribute object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
setInheritColor
public:
virtual IInheritColorAttribute& setInheritColor( EInheritColor inheritColor )

Allows setting the color areas that are inherited from the parent.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Cloning Attributes


[view class]
clone
public:
virtual IAttribute* clone() const

Creates a clone of the IInheritColorAttribute object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IInheritColorAttribute - Enumerations


[view class]
EInheritColor
enum EInheritColor { kForegroundColor, 
                     kBackgroundColor, 
                     kForegroundAndBackgroundColor, 
                     kNone }

The color areas that can be inherited.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IInheritColorAttribute - Inherited Member Functions and Data

Inherited Public Functions

IAttribute

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data