![]() |
TerraLib 4.1
|
A structure for supporting a color definition. More...
#include <TeVisual.h>
Public Member Functions | |
| TeColor () | |
| Empty constructor. | |
| TeColor (int r, int g, int b, const string &name="") | |
| Constructor with parameters. | |
| void | init (int r, int g, int b, const string &name="") |
| Set parameters of colors. | |
| bool | operator== (const TeColor &color) |
| Returns TRUE if color1 is equal to color2 or FALSE if they are different. | |
| TeColor & | operator= (const TeColor &color) |
| Assignment operator. | |
Public Attributes | |
| int | red_ |
| Red component. | |
| int | green_ |
| Green component. | |
| int | blue_ |
| Blue component. | |
| string | name_ |
| Color name. | |
A structure for supporting a color definition.
| TeColor::TeColor | ( | ) | [inline] |
Empty constructor.
| TeColor::TeColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| const string & | name = "" |
||
| ) | [inline] |
Constructor with parameters.
| void TeColor::init | ( | int | r, |
| int | g, | ||
| int | b, | ||
| const string & | name = "" |
||
| ) | [inline] |
Set parameters of colors.
| bool TeColor::operator== | ( | const TeColor & | color | ) | [inline] |
Returns TRUE if color1 is equal to color2 or FALSE if they are different.
| int TeColor::blue_ |
Blue component.
| int TeColor::green_ |
Green component.
Color name.
| int TeColor::red_ |
Red component.