CL_Gradient Class Reference
[clanDisplay 2D]

Colorgradient description class. More...

#include <gradient.h>

List of all members.

Public Member Functions

Construction

 CL_Gradient ()
 Constructs a color gradient.
 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.
 CL_Gradient (const CL_Colorf &first_color, const CL_Colorf &second_color)
 Constructs a Gradient.

Attributes



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

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_left Top left color component.
top_right Top right color component.
bottom_left Bottom left color component.
bottom_right Bottom 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

Color of bottom left corner of gradient.

Referenced by operator==().

Color of bottom right corner of gradient.

Color of top left corner of gradient.

Referenced by operator==().

Color of top right corner of gradient.

Referenced by operator==().


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