An helper to make gradients. More...
#include <gui_gradient.hpp>
Public Types | |
enum | orientation { HORIZONTAL, VERTICAL } |
Public Member Functions | |
gradient () | |
Default constructor. | |
gradient (orientation mOrientation, const color &mMinColor, const color &mMaxColor) | |
Constructor. | |
const color & | get_min_color () const |
Returns the gradient's min colors. | |
const color & | get_max_color () const |
Returns the gradient's max colors. | |
orientation | get_orientation () const |
Returns the gradient's orientation. | |
bool | is_empty () const |
Checks if this gradient is an empty one. | |
Static Public Attributes | |
static const gradient | NONE = gradient() |
An helper to make gradients.
Definition at line 10 of file gui_gradient.hpp.
Definition at line 14 of file gui_gradient.hpp.
gui::gradient::gradient | ( | ) |
gui::gradient::gradient | ( | orientation | mOrientation, | |
const color & | mMinColor, | |||
const color & | mMaxColor | |||
) |
Constructor.
mOrientation | This gradient's orientation | |
mMinColor | This gradient's min color | |
mMaxColor | This gradient's max color |
Definition at line 13 of file gui_gradient.cpp.
const color & gui::gradient::get_max_color | ( | ) | const |
Returns the gradient's max colors.
Definition at line 23 of file gui_gradient.cpp.
const color & gui::gradient::get_min_color | ( | ) | const |
Returns the gradient's min colors.
Definition at line 18 of file gui_gradient.cpp.
gradient::orientation gui::gradient::get_orientation | ( | ) | const |
Returns the gradient's orientation.
Definition at line 28 of file gui_gradient.cpp.
bool gui::gradient::is_empty | ( | ) | const |
Checks if this gradient is an empty one.
Definition at line 33 of file gui_gradient.cpp.
const gradient gui::gradient::NONE = gradient() [static] |
Definition at line 56 of file gui_gradient.hpp.