kpresenter
KPrGradientCollection Class Reference
#include <KPrGradientCollection.h>
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 | |
KPrGradient * | inGradientList (const QColor &_color1, const QColor &_color2, BCType _bcType, const QSize &_size, bool _unbalanced, int _xfactor, int _yfactor) const |
Member Function Documentation
|
Retrieve or create gradient for the given parameters.
Definition at line 25 of file KPrGradientCollection.cpp. |
|
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: