![]() |
Public API Reference |
#include <rgbpixel.h>
Public Methods | |
| csRGBcolor () | |
| Constructor (initialize to zero). More... | |
| csRGBcolor (unsigned char r, unsigned char g, unsigned char b) | |
| Initialize the color with some R/G/B value. More... | |
| void | Set (unsigned char r, unsigned char g, unsigned char b) |
| Assign given red/green/blue values to this pixel. More... | |
| bool | operator== (const csRGBcolor &c) const |
| Compare with an csRGBcolor. More... | |
| bool | operator!= (const csRGBcolor &c) const |
| Compare with an csRGBcolor. More... | |
| csRGBcolor | operator+ (const csRGBcolor &c) const |
| add two csRGBcolors. More... | |
Public Attributes | |
| unsigned char | red |
| The red, green, blue components. More... | |
| unsigned char | green |
| The red, green, blue components. More... | |
| unsigned char | blue |
| The red, green, blue components. More... | |
This class is used whenever we need just R, G and B information, such as when defining a color palette.
Definition at line 65 of file rgbpixel.h.
|
|
Constructor (initialize to zero).
Definition at line 70 of file rgbpixel.h. References blue, green, and red. Referenced by operator+. |
|
||||||||||||||||
|
Initialize the color with some R/G/B value.
Definition at line 72 of file rgbpixel.h. |
|
|
Compare with an csRGBcolor.
Definition at line 81 of file rgbpixel.h. References operator==. |
|
|
add two csRGBcolors.
Definition at line 84 of file rgbpixel.h. References blue, csRGBcolor, green, and red. |
|
|
Compare with an csRGBcolor.
Definition at line 78 of file rgbpixel.h. References blue, green, and red. Referenced by operator!=. |
|
||||||||||||||||
|
Assign given red/green/blue values to this pixel.
Definition at line 75 of file rgbpixel.h. |
|
|
The red, green, blue components.
Definition at line 68 of file rgbpixel.h. Referenced by csRGBVector::Compare, csRGBVector::CompareKey, csPackRGBcolorToRGB, csRGBcolor, csUnpackRGBAtoRGBcolor, csUnpackRGBtoRGBcolor, operator+, csRGBpixel::operator+=, csRGBpixel::operator==, operator==, and Set. |
|
|
The red, green, blue components.
Definition at line 68 of file rgbpixel.h. Referenced by csRGBVector::Compare, csRGBVector::CompareKey, csPackRGBcolorToRGB, csRGBcolor, csUnpackRGBAtoRGBcolor, csUnpackRGBtoRGBcolor, operator+, csRGBpixel::operator+=, csRGBpixel::operator==, operator==, and Set. |
|
|
The red, green, blue components.
Definition at line 68 of file rgbpixel.h. Referenced by csRGBVector::Compare, csRGBVector::CompareKey, csPackRGBcolorToRGB, csRGBcolor, csUnpackRGBAtoRGBcolor, csUnpackRGBtoRGBcolor, operator+, csRGBpixel::operator+=, csRGBpixel::operator==, operator==, and Set. |