#include <tvu_typesdef.h>
Inheritance diagram for CTRGB::

Public Methods | |
| CTRGB () | |
| CTRGB (TINT _r, TINT _g, TINT _b) | |
| DEFINE_ID_FUNCTIONS (CTRGB, CTObject, CLASSNAME_TYPE_RGB_ID, CLASSNAME_TYPE_RGB) public | |
| TBOOL | Set (TLPCSTR lpStrColor) |
| Set color from a string. More... | |
| TBOOL | Set (CTString &StrColor) |
| virtual CTObject* | SetValue (CTList pValues) |
| For calculation. More... | |
| virtual CTObject* | Calculate (TINT iOperator, CTObject *Object) |
| Operations Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More... | |
| TBOOL | operator== (TRGB rgb) |
| Comparing operations. More... | |
| TBOOL | operator== (CTRGB &rgb) |
| TBOOL | operator!= (TRGB rgb) |
| TBOOL | operator!= (CTRGB &rgb) |
| CTRGB& | operator= (CTRGB &rgb) |
| TRGB | toRGB () |
| Convert. More... | |
Data Fields | |
| TINT | r |
| Data. More... | |
| TINT | g |
| Data. More... | |
| TINT | b |
| Data. More... | |
|
|
Operations Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.
Reimplemented from CTObject. |
|
|
Set color from a string.
|
|
|
For calculation.
Reimplemented from CTObject. |
|
|
Comparing operations.
01730 { return (r == rgb.r) && (g == rgb.g) && (b == rgb.b);} ;
|
|
|
Convert.
01737 { TRGB rgb = {r, g, b}; return rgb; };
|
|
|
Data.
|
|
|
Data.
|
|
|
Data.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001