QGradient Class Reference

QGradient Class Reference

#include <qbrush.h>

Class Description

Definition at line 201 of file qbrush.h.

+ Inheritance diagram for QGradient:

Public Types

enum  Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
 
enum  Spread { PadSpread, ReflectSpread, RepeatSpread }
 
enum  CoordinateMode { LogicalMode, StretchToDeviceMode, ObjectBoundingMode }
 
enum  InterpolationMode { ColorInterpolation, ComponentInterpolation }
 

Public Member Functions

 QGradient ()
 
Type type () const
 
void setSpread (Spread spread)
 
Spread spread () const
 
void setColorAt (qreal pos, const QColor &color)
 
void setStops (const QGradientStops &stops)
 
QGradientStops stops () const
 
CoordinateMode coordinateMode () const
 
void setCoordinateMode (CoordinateMode mode)
 
InterpolationMode interpolationMode () const
 
void setInterpolationMode (InterpolationMode mode)
 
bool operator== (const QGradient &gradient) const
 
bool operator!= (const QGradient &other) const
 
bool operator== (const QGradient &gradient)
 

Friends

class QLinearGradient
 
class QRadialGradient
 
class QConicalGradient
 
class QBrush
 

Member Enumeration Documentation

enum Type
Enumerator
LinearGradient 
RadialGradient 
ConicalGradient 
NoGradient 

Definition at line 206 of file qbrush.h.

enum Spread
Enumerator
PadSpread 
ReflectSpread 
RepeatSpread 

Definition at line 213 of file qbrush.h.

Enumerator
LogicalMode 
StretchToDeviceMode 
ObjectBoundingMode 

Definition at line 219 of file qbrush.h.

Enumerator
ColorInterpolation 
ComponentInterpolation 

Definition at line 225 of file qbrush.h.

Constructor & Destructor Documentation

QGradient ( )

Member Function Documentation

Type type ( ) const
inline

Definition at line 232 of file qbrush.h.

232 { return m_type; }
void setSpread ( Spread  spread)
inline

Definition at line 277 of file qbrush.h.

278 { m_spread = aspread; }
Spread spread ( ) const
inline

Definition at line 235 of file qbrush.h.

235 { return m_spread; }
void setColorAt ( qreal  pos,
const QColor color 
)
void setStops ( const QGradientStops stops)
QGradientStops stops ( ) const
CoordinateMode coordinateMode ( ) const
void setCoordinateMode ( CoordinateMode  mode)
InterpolationMode interpolationMode ( ) const
void setInterpolationMode ( InterpolationMode  mode)
bool operator== ( const QGradient gradient) const
bool operator!= ( const QGradient other) const
inline

Definition at line 249 of file qbrush.h.

250  { return !operator==(other); }
bool operator==(const QGradient &gradient) const
bool operator== ( const QGradient gradient)

Friends And Related Function Documentation

friend class QLinearGradient
friend

Definition at line 255 of file qbrush.h.

friend class QRadialGradient
friend

Definition at line 256 of file qbrush.h.

friend class QConicalGradient
friend

Definition at line 257 of file qbrush.h.

friend class QBrush
friend

Definition at line 258 of file qbrush.h.

Member Data Documentation

qreal x1

Definition at line 265 of file qbrush.h.

qreal y1

Definition at line 265 of file qbrush.h.

qreal x2

Definition at line 265 of file qbrush.h.

qreal y2

Definition at line 265 of file qbrush.h.

struct { ... } linear
qreal cx

Definition at line 268 of file qbrush.h.

qreal cy

Definition at line 268 of file qbrush.h.

qreal fx

Definition at line 268 of file qbrush.h.

qreal fy

Definition at line 268 of file qbrush.h.

qreal cradius

Definition at line 268 of file qbrush.h.

struct { ... } radial
qreal angle

Definition at line 271 of file qbrush.h.

struct { ... } conical

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