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