CColor

#include <vstgui.h>

struct CColor;

Structure used for the definition of a color. It is defined by 4 unsigned char values : red, green, blue, unused.

The predefined variable kTransparentCColor (set to the white color (255, 255, 255)) is used as transparency color for the pixmap.

There are some other predefined colors :

CColor red green blue unused
kTransparentCColor 255 255 255 0
kBlackCColor 0 0 0 0
kWhiteCColor 255 255 255 0
kGreyCColor 127 127 127 0
kRedCColor 255 0 0 0
kGreenCColor 0 255 0 0
kBlueCColor 0 0 255 0
kYellowCColor 255 255 0 0
kCyanCColor 255 0 255 0
kMagentaCColor 0 255 255 0

operator ()

1.0

CColor &operator () (unsigned char red, unsigned char green, unsigned char blue, unsigned char unused);

Overloads the () operator.

Example :

CColor blackColor (0, 0, 0, 0);
CColor whiteColor (255, 255, 255,0);
CColor greenColor (0, 255, 0, 0);
CColor redColor (255, 0, 0, 0);

operator =

1.0

CColor &operator = (CColor newColor);

Overloads the = operator.


operator ==

2.1

bool operator == (const CColor &other) const;

Overloads the == operator.


operator !=

2.1

bool operator != (const CColor &other) const;

Overloads the != operator.


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.