Colorgradient description class. More...
#include <gradient.h>
Public Member Functions | |
Construction | |
| CL_Gradient () | |
| Constructs a color gradient. | |
| CL_Gradient (const CL_Colorf &top_left, const CL_Colorf &top_right, const CL_Colorf &bottom_left, const CL_Colorf &bottom_right) | |
| Constructs a color gradient. | |
| CL_Gradient (const CL_Colorf &first_color, const CL_Colorf &second_color) | |
| Constructs a Gradient. | |
Attributes | |
|
| |
| CL_Colorf | top_left |
| Color of top left corner of gradient. | |
| CL_Colorf | top_right |
| Color of top right corner of gradient. | |
| CL_Colorf | bottom_left |
| Color of bottom left corner of gradient. | |
| CL_Colorf | bottom_right |
| Color of bottom right corner of gradient. | |
| bool | operator== (const CL_Gradient &other) const |
| Compares gradient to another one. | |
| bool | operator!= (const CL_Gradient &other) const |
| Compares gradient to another one. | |
Colorgradient description class.
| CL_Gradient::CL_Gradient | ( | ) | [inline] |
Constructs a color gradient.
| CL_Gradient::CL_Gradient | ( | const CL_Colorf & | top_left, | |
| const CL_Colorf & | top_right, | |||
| const CL_Colorf & | bottom_left, | |||
| const CL_Colorf & | bottom_right | |||
| ) | [inline] |
Constructs a color gradient.
| top_left | Top left color component. | |
| top_right | Top right color component. | |
| bottom_left | Bottom left color component. | |
| bottom_right | Bottom right color component. |
Constructs a Gradient.
| first_color | = Colorf | |
| second_color | = Colorf |
| bool CL_Gradient::operator!= | ( | const CL_Gradient & | other | ) | const [inline] |
Compares gradient to another one.
| bool CL_Gradient::operator== | ( | const CL_Gradient & | other | ) | const [inline] |
Compares gradient to another one.
References bottom_left, top_left, and top_right.
Color of bottom left corner of gradient.
Referenced by operator==().
Color of bottom right corner of gradient.
Color of top left corner of gradient.
Referenced by operator==().
Color of top right corner of gradient.
Referenced by operator==().
1.7.1