#include "colcontx.h"
Go to the source code of this file.
Classes | |
struct | IndexedColourInfo |
class | IndexedColour |
Definition of a colour, stored to high (128-bit) precision. DocColours in the Document may refer to IndexedColour objects from which they are defined. More... | |
Defines | |
#define | INDEXEDCOLOUR_RGBT(col) IndexedColour(COLOURMODEL_RGBT, (ColourGeneric *)(col)) |
#define | INDEXEDCOLOUR_CMYK(col) IndexedColour(COLOURMODEL_CMYK, (ColourGeneric *)(col)) |
#define | INDEXEDCOLOUR_HSVT(col) IndexedColour(COLOURMODEL_HSVT, (ColourGeneric *)(col)) |
#define | INDEXEDCOLOUR_CIET(col) IndexedColour(COLOURMODEL_CIET, (ColourGeneric *)(col)) |
#define | INDEXEDCOLOUR_GREYT(col) IndexedColour(COLOURMODEL_GREYT, (ColourGeneric *)(col)) |
Typedefs | |
typedef IndexedColour * | IndexedColourPtr |
Enumerations | |
enum | IndexedColourType { COLOURTYPE_NORMAL = 0, COLOURTYPE_SPOT, COLOURTYPE_TINT, COLOURTYPE_LINKED } |
|
Definition at line 363 of file colourix.h. |
|
Definition at line 361 of file colourix.h. |
|
Definition at line 364 of file colourix.h. |
|
Definition at line 362 of file colourix.h. |
|
Comment: These macros simplify construction of IndexedColour objects in given colour models. Use something like this: MonoOn { ColourRGBT TheDefinition; IndexedColour TheColour = INDEXEDCOLOURRGBT(&TheDefinition); } MonoOff Notes: Note that these macros explicitly cast 'col' to a (ColourGeneric *), so if it is not a pointer to a 128-bit colour structure (ColourGeneric, ColourRGBT, ColourCIET etc) then nasty things may occur.
Definition at line 360 of file colourix.h. |
|
Definition at line 329 of file colourix.h. |
|
Comment: IndexedColours can be set to one of 4 types (held in their 2-bit Info.ColourType field). The types are enumerated as: MonoOn COLOURTYPE_NORMAL A Normal colour COLOURTYPE_SPOT A Spot colour COLOURTYPE_TINT A Tint of another colour COLOURTYPE_LINKED A colour Linked to another colour MonoOff
Definition at line 172 of file colourix.h. 00173 { 00174 COLOURTYPE_NORMAL = 0, // The colour is a perfectly normal colour 00175 COLOURTYPE_SPOT, // The colour is a Spot Colour 00176 COLOURTYPE_TINT, // The colour is a Tint (or a shade, a special type of tint) 00177 COLOURTYPE_LINKED // The colour is a Linked colour 00178 } IndexedColourType;
|