33 #include "../api_display.h"
61 : top_left(top_left), top_right(top_right), bottom_left(bottom_left),
62 bottom_right(bottom_right)
71 : top_left(first_color), top_right(first_color), bottom_left(second_color),
72 bottom_right(second_color)
97 bottom_left == other.
bottom_left && bottom_right == bottom_right;
103 return !(*
this == other);
Gradient()
Constructs a color gradient.
Definition: gradient.h:49
Floating point color description class (for float).
Definition: color.h:661
Colorgradient description class.
Definition: gradient.h:42
Gradient(const Colorf &first_color, const Colorf &second_color)
Constructs a Gradient.
Definition: gradient.h:70
Colorf bottom_right
Color of bottom right corner of gradient.
Definition: gradient.h:91
Gradient(const Colorf &top_left, const Colorf &top_right, const Colorf &bottom_left, const Colorf &bottom_right)
Constructs a color gradient.
Definition: gradient.h:59
bool operator==(const Gradient &other) const
Compares gradient to another one.
Definition: gradient.h:94
Colorf bottom_left
Color of bottom left corner of gradient.
Definition: gradient.h:88
Colorf top_left
Color of top left corner of gradient.
Definition: gradient.h:82
bool operator!=(const Gradient &other) const
Compares gradient to another one.
Definition: gradient.h:101
Colorf top_right
Color of top right corner of gradient.
Definition: gradient.h:85