#include <CLGradientStops.h>
◆ CLGradientStops()
References CLGradientBase::getGradientStop(), CLGradientBase::getNumGradientStops(), CLGradientStop::getOffset(), CLRelAbsVector::getRelativeValue(), CLGradientStop::getStopColor(), mBegin, mColorData, mCurrentPosition, mEnd, mIndex, and mStops.
◆ ~CLGradientStops()
CLGradientStops::~CLGradientStops |
( |
| ) |
|
◆ adjust_value()
void CLGradientStops::adjust_value |
( |
double & |
value | ) |
const |
|
protected |
◆ color()
◆ update_color()
void CLGradientStops::update_color |
( |
double |
val | ) |
|
Given a relative value, this routine returns a const pointer to an rgba value that is 4 unsigned char long. If the gradient that was used to create the CLGradientStops object didn't have any gradient stops, the color that is returned is completly transparent black.
References adjust_value(), CLRGBAColor::mA, CLRGBAColor::mB, mBegin, mColor, mColorData, mCurrentPosition, mEnd, CLRGBAColor::mG, mHelp, mIndex, CLRGBAColor::mR, and mTmp.
Referenced by CLLayoutRenderer::create_linear_gradient_texture(), and CLLayoutRenderer::create_radial_gradient_texture().
◆ mBegin
std::list<std::pair<double, unsigned int> >::const_iterator CLGradientStops::mBegin |
|
protected |
◆ mColor
◆ mColorData
unsigned char* CLGradientStops::mColorData |
|
protected |
◆ mCurrentPosition
std::list<std::pair<double, unsigned int> >::const_iterator CLGradientStops::mCurrentPosition |
|
protected |
◆ mEnd
std::list<std::pair<double, unsigned int> >::const_iterator CLGradientStops::mEnd |
|
protected |
◆ mHelp
double CLGradientStops::mHelp |
|
protected |
◆ mIndex
unsigned int CLGradientStops::mIndex |
|
protected |
◆ mSpreadMethod
◆ mStops
std::list<std::pair<double, unsigned int> > CLGradientStops::mStops |
|
protected |
◆ mTmp
std::list<std::pair<double, unsigned int> >::const_iterator CLGradientStops::mTmp |
|
protected |
The documentation for this class was generated from the following files: