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