Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Examples  

QSGGradient Class Reference

Gradient style definition. More...

#include <qsgattr.h>

Inheritance diagram for QSGGradient:

Inheritance graph
[legend]
List of all members.

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 QSGFillfill (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)

Detailed Description

Gradient style definition.

Gradient is an object which returns a fill style for each parameter value between 0.0 and 1.0, see fill()

Author:
kamil


Member Function Documentation

virtual QSGFill& QSGGradient::fill double    level,
QSGFill   fill
const [virtual]
 

Sets 'fill' argument to some fill style for level values between 0.0 and 1.0. Returns 'fill'


The documentation for this class was generated from the following file:
Generated on Mon Mar 18 19:16:46 2002 for KMatplot library by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002