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.
![]() |
public:
virtual ~IInheritColorAttribute()
Destructor for the IInheritColorAttribute object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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.
public:
IInheritColorAttribute(EInheritColor inheritColor)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IInheritColorAttribute( const IInheritColorAttribute& inheritColorAttribute )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool operator ==(const IAttribute& attribute) const
Equivalence operator for the IInheritColorAttribute object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
EInheritColor inheritColor() const
Returns the EInheritColor value associated with the IInheritColorAttributeObject.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IInheritColorAttribute& operator =( const IInheritColorAttribute& inheritColorAttribute )
Assignment operator for IInheritColorAttribute object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IInheritColorAttribute& setInheritColor( EInheritColor inheritColor )
Allows setting the color areas that are inherited from the parent.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IAttribute* clone() const
Creates a clone of the IInheritColorAttribute object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
enum EInheritColor { kForegroundColor, kBackgroundColor, kForegroundAndBackgroundColor, kNone }
The color areas that can be inherited.
Windows | OS/2 | AIX |
Yes | Yes | Yes |