libmspub::ColorReference Class Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
libmspub::ColorReference Class Reference

`#include <ColorReference.h>`

## Public Member Functions
| ColorReference (unsigned color)
| ColorReference (unsigned baseColor, unsigned modifiedColor)
Color | getFinalColor (const std::vector< Color > &palette) const

## Private Member Functions
Color | getRealColor (unsigned c, const std::vector< Color > &palette) const

## Private Attributes
unsigned | m_baseColor
unsigned | m_modifiedColor

## Static Private Attributes
static const unsigned char | CHANGE_INTENSITY = 0x10
static const unsigned char | BLACK_BASE = 0x1
static const unsigned char | WHITE_BASE = 0x2

## Friends
bool | operator== (const libmspub::ColorReference &, const libmspub::ColorReference &)

## Constructor & Destructor Documentation

libmspub::ColorReference::ColorReference | ( | unsigned | color | ) |
| inlineexplicit

libmspub::ColorReference::ColorReference | ( | unsigned | baseColor,
|  | unsigned | modifiedColor
| ) |  |
| inline

## Member Function Documentation

Color libmspub::ColorReference::getFinalColor | ( | const std::vector< Color > & | palette | ) | const

Referenced by ColorReference(), libmspub::PatternFill::getProperties(), libmspub::SolidFill::getProperties(), libmspub::MSPUBCollector::paintShape(), and libmspub::writeCustomShape().

Color libmspub::ColorReference::getRealColor | ( | unsigned | c,
|  | const std::vector< Color > & | palette
| ) |  | const
| private

Referenced by getFinalColor().

## Friends And Related Function Documentation

bool operator== | ( | const libmspub::ColorReference & | l,
|  | const libmspub::ColorReference & | r
| ) |  |
| friend

Referenced by ColorReference().

## Member Data Documentation

const unsigned char libmspub::ColorReference::BLACK_BASE = 0x1
| staticprivate

Referenced by getFinalColor(), and libmspub::operator==().

const unsigned char libmspub::ColorReference::CHANGE_INTENSITY = 0x10
| staticprivate

Referenced by getFinalColor(), and libmspub::operator==().

unsigned libmspub::ColorReference::m_baseColor
| private

Referenced by getFinalColor(), and libmspub::operator==().

unsigned libmspub::ColorReference::m_modifiedColor
| private

Referenced by getFinalColor(), and libmspub::operator==().

const unsigned char libmspub::ColorReference::WHITE_BASE = 0x2
| staticprivate

Referenced by getFinalColor(), and libmspub::operator==().

The documentation for this class was generated from the following files:

- ColorReference.h
- ColorReference.cpp