ClanLib  2.3.7
List of all members
CL_Gradient Class Reference

Colorgradient description class. More...

#include <gradient.h>

Public Member Functions

Construction
 CL_Gradient ()
 Constructs a color gradient. More...
 
 CL_Gradient (const CL_Colorf &top_left, const CL_Colorf &top_right, const CL_Colorf &bottom_left, const CL_Colorf &bottom_right)
 Constructs a color gradient. More...
 
 CL_Gradient (const CL_Colorf &first_color, const CL_Colorf &second_color)
 Constructs a Gradient. More...
 

Attributes

CL_Colorf top_left
 Color of top left corner of gradient. More...
 
CL_Colorf top_right
 Color of top right corner of gradient. More...
 
CL_Colorf bottom_left
 Color of bottom left corner of gradient. More...
 
CL_Colorf bottom_right
 Color of bottom right corner of gradient. More...
 
bool operator== (const CL_Gradient &other) const
 Compares gradient to another one. More...
 
bool operator!= (const CL_Gradient &other) const
 Compares gradient to another one. More...
 

Detailed Description

Colorgradient description class.

Constructor & Destructor Documentation

CL_Gradient::CL_Gradient ( )
inline

Constructs a color gradient.

CL_Gradient::CL_Gradient ( const CL_Colorf top_left,
const CL_Colorf top_right,
const CL_Colorf bottom_left,
const CL_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.
CL_Gradient::CL_Gradient ( const CL_Colorf first_color,
const CL_Colorf second_color 
)
inline

Constructs a Gradient.

Parameters
first_color= Colorf
second_color= Colorf

Member Function Documentation

bool CL_Gradient::operator!= ( const CL_Gradient other) const
inline

Compares gradient to another one.

bool CL_Gradient::operator== ( const CL_Gradient other) const
inline

Compares gradient to another one.

References bottom_left, top_left, and top_right.

Member Data Documentation

CL_Colorf CL_Gradient::bottom_left

Color of bottom left corner of gradient.

Referenced by operator==().

CL_Colorf CL_Gradient::bottom_right

Color of bottom right corner of gradient.

CL_Colorf CL_Gradient::top_left

Color of top left corner of gradient.

Referenced by operator==().

CL_Colorf CL_Gradient::top_right

Color of top right corner of gradient.

Referenced by operator==().


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