#include <KPrGradientCollection.h>
Public Member Functions | |
| const TQPixmap & | getGradient (const TQColor &_color1, const TQColor &_color2, BCType _bcType, const TQSize &_size, bool _unbalanced, int _xfactor, int _yfactor, bool addref=true) |
| void | removeRef (const TQColor &_color1, const TQColor &_color2, BCType _bcType, const TQSize &_size, bool _unbalanced, int _xfactor, int _yfactor) |
Protected Member Functions | |
| KPrGradient * | inGradientList (const TQColor &_color1, const TQColor &_color2, BCType _bcType, const TQSize &_size, bool _unbalanced, int _xfactor, int _yfactor) const |
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 37 of file KPrGradientCollection.h.
Constructor & Destructor Documentation
◆ KPrGradientCollection()
|
inline |
Definition at line 40 of file KPrGradientCollection.h.
◆ ~KPrGradientCollection()
|
inline |
Definition at line 43 of file KPrGradientCollection.h.
Member Function Documentation
◆ getGradient()
| const TQPixmap & KPrGradientCollection::getGradient | ( | const TQColor & | _color1, |
| const TQColor & | _color2, | ||
| BCType | _bcType, | ||
| const TQSize & | _size, | ||
| bool | _unbalanced, | ||
| int | _xfactor, | ||
| int | _yfactor, | ||
| bool | addref = true |
||
| ) |
Retrieve or create gradient for the given parameters.
Definition at line 24 of file KPrGradientCollection.cpp.
◆ inGradientList()
|
protected |
Definition at line 58 of file KPrGradientCollection.cpp.
◆ removeRef()
| void KPrGradientCollection::removeRef | ( | const TQColor & | _color1, |
| const TQColor & | _color2, | ||
| BCType | _bcType, | ||
| const TQSize & | _size, | ||
| bool | _unbalanced, | ||
| int | _xfactor, | ||
| int | _yfactor | ||
| ) |
Remove reference to gradient with the given parameters.
Definition at line 47 of file KPrGradientCollection.cpp.
The documentation for this class was generated from the following files:
