### 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

~IInheritColorAttribute

      public:
      virtual ~IInheritColorAttribute()

  Destructor for the IInheritColorAttribute object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

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

inheritColor

      public:
      EInheritColor inheritColor() const

  Returns the EInheritColor value associated with the IInheritColorAttributeObject.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator =

      public:
      IInheritColorAttribute&
        operator =( const IInheritColorAttribute& inheritColorAttribute )

  Assignment operator for IInheritColorAttribute object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

clone

      public:
      virtual IAttribute* clone() const

  Creates a clone of the IInheritColorAttribute object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IInheritColorAttribute - Enumerations

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

  -     virtual ~IAttribute()

  -     virtual IAttribute* clone() const = 0

  -     bool operator !=(const IAttribute& anAttribute) const

  -     virtual bool
          operator ==( const IAttribute& anAttribute ) const = 0

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None