colourix.h File Reference

(r1785/r1282)

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

Enumerations

enum  IndexedColourType { COLOURTYPE_NORMAL = 0, COLOURTYPE_SPOT, COLOURTYPE_TINT, COLOURTYPE_LINKED }


Define Documentation

#define INDEXEDCOLOUR_CIET col   )     IndexedColour(COLOURMODEL_CIET, (ColourGeneric *)(col))
 

Definition at line 363 of file colourix.h.

#define INDEXEDCOLOUR_CMYK col   )     IndexedColour(COLOURMODEL_CMYK, (ColourGeneric *)(col))
 

Definition at line 361 of file colourix.h.

#define INDEXEDCOLOUR_GREYT col   )     IndexedColour(COLOURMODEL_GREYT, (ColourGeneric *)(col))
 

Definition at line 364 of file colourix.h.

#define INDEXEDCOLOUR_HSVT col   )     IndexedColour(COLOURMODEL_HSVT, (ColourGeneric *)(col))
 

Definition at line 362 of file colourix.h.

#define INDEXEDCOLOUR_RGBT col   )     IndexedColour(COLOURMODEL_RGBT, (ColourGeneric *)(col))
 

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.

See also:
IndexedColour::IndexedColour

Definition at line 360 of file colourix.h.


Typedef Documentation

typedef IndexedColour* IndexedColourPtr
 

Definition at line 329 of file colourix.h.


Enumeration Type Documentation

enum IndexedColourType
 

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

See also:
IndexedColour::SetType; IndexedColour::GetType; IndexedColour::SetLinkedParent
Enumerator:
COLOURTYPE_NORMAL 
COLOURTYPE_SPOT 
COLOURTYPE_TINT 
COLOURTYPE_LINKED 

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;


Generated on Sat Nov 10 03:49:06 2007 for Camelot by  doxygen 1.4.4