|
CartoType API
|
#include <cartotype_graphics.h>
Public Member Functions | |
| TColor | Foreground (int32 aIndex) const |
| TColor | Background (int32 aIndex) const |
| int32 | Count () const |
| int32 | AddEntry (TResult &aError, TColor aForeground, TColor aBackground) |
Public Attributes | |
| int32 | iEntries |
| TColor | iForeground [aColors] |
| TColor | iBackground [aColors] |
A simple templated palette class for any number of colors.
| int32 CartoType::TSimplePalette< aColors >::AddEntry | ( | TResult & | aError, |
| TColor | aForeground, | ||
| TColor | aBackground | ||
| ) | [inline, virtual] |
Add a new entry if possible, returning its index. If the combination of foreground and background colors already exists in the palette, returns its index. Return 0 and set aError if the operation fails.
Implements CartoType::MPalette.
| TColor CartoType::TSimplePalette< aColors >::Background | ( | int32 | aIndex | ) | const [inline, virtual] |
Supply a background for color index aIndex. If the 'null color' KTransparentBlack is supplied no background is drawn.
Implements CartoType::MPalette.
| int32 CartoType::TSimplePalette< aColors >::Count | ( | ) | const [inline, virtual] |
Return the number of entries in the palette.
Implements CartoType::MPalette.
| TColor CartoType::TSimplePalette< aColors >::Foreground | ( | int32 | aIndex | ) | const [inline, virtual] |
Supply a color for color index aIndex.
Implements CartoType::MPalette.
1.7.5.1