#include <qsgattr.h>
Inheritance diagram for QSGGradient:
Public Types | |
enum | Type { GDefault, GGray, GStrange, GTwoColors, GFiveColors } |
Public Methods | |
QSGGradient (Type t=GDefault) | |
QSGGradient (const QSGFill &f0, const QSGFill &f4) | |
QSGGradient (const QSGFill &f0, const QSGFill &f1, const QSGFill &f2, const QSGFill &f3, const QSGFill &f4, Type t=GFiveColors) | |
virtual | ~QSGGradient () |
virtual QSGFill & | fill (double level, QSGFill &fill) const |
virtual bool | isEqualTo (const QSGGradient &gradient) const |
QSGFill | fill (int nr) const |
Type | type () const |
Protected Methods | |
void | set_default_colors () |
Protected Attributes | |
Type | t |
QSGFill | f [5] |
bool | m_all_colors |
Friends | |
bool | operator== (const QSGGradient &, const QSGGradient &) |
bool | operator!= (const QSGGradient &, const QSGGradient &) |
QString | toQString (const QSGGradient &arrow) |
QSGGradient | toQSGGradient (const QString &string) |
Gradient is an object which returns a fill style for each parameter value between 0.0 and 1.0, see fill()
|
Sets 'fill' argument to some fill style for level values between 0.0 and 1.0. Returns 'fill' |