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