kpresenter

KPrGradientCollection Class Reference

#include <KPrGradientCollection.h>

List of all members.


Detailed Description

Class: KPrGradientCollection Holds a collection of gradients, and is able to provide a gradient for a given set of gradient parameters.

The idea is to be able to share gradients among pages which need the same one. This class is currently only used for KPBackground, not for objects with gradients (those having much less chances of sharing).

Definition at line 38 of file KPrGradientCollection.h.


Public Member Functions

 KPrGradientCollection ()
 ~KPrGradientCollection ()
const QPixmap & getGradient (const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size, bool _unbalanced, int _xfactor, int _yfactor, bool addref=true)
void removeRef (const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size, bool _unbalanced, int _xfactor, int _yfactor)

Protected Member Functions

KPrGradientinGradientList (const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size, bool _unbalanced, int _xfactor, int _yfactor) const

Member Function Documentation

const QPixmap & KPrGradientCollection::getGradient ( const QColor &  _color1,
const QColor &  _color2,
BCType  _bcType,
const QSize &  _size,
bool  _unbalanced,
int  _xfactor,
int  _yfactor,
bool  addref = true 
)

Retrieve or create gradient for the given parameters.

Definition at line 25 of file KPrGradientCollection.cpp.

void KPrGradientCollection::removeRef ( const QColor &  _color1,
const QColor &  _color2,
BCType  _bcType,
const QSize &  _size,
bool  _unbalanced,
int  _xfactor,
int  _yfactor 
)

Remove reference to gradient with the given parameters.

Definition at line 48 of file KPrGradientCollection.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys