Public Types | Public Member Functions | Friends

QGradient Class Reference

Search for all occurrences

Detailed Description

Definition at line 195 of file qbrush.h.

#include <qbrush.h>

Inheritance diagram for QGradient:
Inheritance graph
[legend]

List of all members.

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

Member Enumeration Documentation

enum Type
enum Spread
Enumerator:
LogicalMode 
StretchToDeviceMode 
ObjectBoundingMode 

Definition at line 213 of file qbrush.h.

Enumerator:
ColorInterpolation 
ComponentInterpolation 

Definition at line 219 of file qbrush.h.


Constructor & Destructor Documentation

QGradient ( )

Member Function Documentation

Type type ( ) const [inline]

Definition at line 226 of file qbrush.h.

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

Definition at line 270 of file qbrush.h.

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

Definition at line 229 of file qbrush.h.

{ 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 243 of file qbrush.h.

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

Friends And Related Function Documentation

friend class QLinearGradient [friend]

Definition at line 249 of file qbrush.h.

friend class QRadialGradient [friend]

Definition at line 250 of file qbrush.h.

friend class QConicalGradient [friend]

Definition at line 251 of file qbrush.h.


Member Data Documentation

qreal x1

Definition at line 258 of file qbrush.h.

qreal y1

Definition at line 258 of file qbrush.h.

qreal x2

Definition at line 258 of file qbrush.h.

qreal y2

Definition at line 258 of file qbrush.h.

struct { ... } linear
qreal cx

Definition at line 261 of file qbrush.h.

qreal cy

Definition at line 261 of file qbrush.h.

qreal fx

Definition at line 261 of file qbrush.h.

qreal fy

Definition at line 261 of file qbrush.h.

qreal radius

Definition at line 261 of file qbrush.h.

struct { ... } radial
qreal angle

Definition at line 264 of file qbrush.h.

struct { ... } conical

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

QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient
QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient QGradient