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...
 

Detailed Description

Colorgradient description class.

Constructor & Destructor Documentation

clan::Gradient::Gradient ( )
inline

Constructs a color gradient.

clan::Gradient::Gradient ( const Colorf top_left,
const Colorf top_right,
const Colorf bottom_left,
const Colorf bottom_right 
)
inline

Constructs a color gradient.

Parameters
top_leftTop left color component.
top_rightTop right color component.
bottom_leftBottom left color component.
bottom_rightBottom right color component.
clan::Gradient::Gradient ( const Colorf first_color,
const Colorf second_color 
)
inline

Constructs a Gradient.

Parameters
first_color= Colorf
second_color= Colorf

Member Function Documentation

bool clan::Gradient::operator!= ( const Gradient other) const
inline

Compares gradient to another one.

bool clan::Gradient::operator== ( const Gradient other) const
inline

Compares gradient to another one.

References bottom_left, bottom_right, top_left, and top_right.

Member Data Documentation

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==().


The documentation for this class was generated from the following file: