libs/flake

KoGradientBackground Class Reference

A gradient shape background. More...

#include <KoGradientBackground.h>

Inheritance diagram for KoGradientBackground:

List of all members.

Public Member Functions

 KoGradientBackground (const QGradient &gradient, const QMatrix &matrix=QMatrix())
 KoGradientBackground (QGradient *gradient, const QMatrix &matrix=QMatrix())
virtual ~KoGradientBackground ()
virtual void fillStyle (KoGenStyle &style, KoShapeSavingContext &context)
const QGradientgradient () const
virtual bool loadStyle (KoOdfLoadingContext &context, const QSizeF &shapeSize)
QMatrix matrix () const
KoGradientBackgroundoperator= (const KoGradientBackground &rhs)
virtual void paint (QPainter &painter, const QPainterPath &fillPath) const
void setGradient (const QGradient &gradient)
void setGradient (QGradient *gradient)
void setMatrix (const QMatrix &matrix)

Detailed Description

A gradient shape background.

Definition at line 30 of file KoGradientBackground.h.


Constructor & Destructor Documentation

KoGradientBackground::KoGradientBackground ( QGradient gradient,
const QMatrix matrix = QMatrix() 
) [explicit]

Creates new gradient background from given gradient.

The background takes ownership of the given gradient.

Definition at line 45 of file KoGradientBackground.cpp.

KoGradientBackground::KoGradientBackground ( const QGradient gradient,
const QMatrix matrix = QMatrix() 
) [explicit]

Create new gradient background from the given gradient.

A clone of the given gradient is used.

Definition at line 53 of file KoGradientBackground.cpp.

KoGradientBackground::~KoGradientBackground (  )  [virtual]

Destroys the background.

Definition at line 61 of file KoGradientBackground.cpp.


Member Function Documentation

void KoGradientBackground::fillStyle ( KoGenStyle &  style,
KoShapeSavingContext context 
) [virtual]

reimplemented from KoShapeBackground

Implements KoShapeBackground.

Definition at line 121 of file KoGradientBackground.cpp.

const QGradient * KoGradientBackground::gradient (  )  const

Returns the gradient.

Definition at line 94 of file KoGradientBackground.cpp.

bool KoGradientBackground::loadStyle ( KoOdfLoadingContext &  context,
const QSizeF shapeSize 
) [virtual]

reimplemented from KoShapeBackground

Implements KoShapeBackground.

Definition at line 128 of file KoGradientBackground.cpp.

QMatrix KoGradientBackground::matrix (  )  const

Returns the transform matrix.

Definition at line 71 of file KoGradientBackground.cpp.

KoGradientBackground & KoGradientBackground::operator= ( const KoGradientBackground rhs  ) 

Assignment operator.

Definition at line 99 of file KoGradientBackground.cpp.

void KoGradientBackground::paint ( QPainter painter,
const QPainterPath fillPath 
) const [virtual]

reimplemented from KoShapeBackground

Implements KoShapeBackground.

Definition at line 112 of file KoGradientBackground.cpp.

void KoGradientBackground::setGradient ( const QGradient gradient  ) 

Sets a new gradient.

A clone of the given gradient is used.

Definition at line 85 of file KoGradientBackground.cpp.

void KoGradientBackground::setGradient ( QGradient gradient  ) 

Sets a new gradient.

The background takes ownership of the given gradient.

Definition at line 76 of file KoGradientBackground.cpp.

void KoGradientBackground::setMatrix ( const QMatrix matrix  ) 

Sets the transform matrix.

Definition at line 66 of file KoGradientBackground.cpp.


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