#include <KPrGradient.h>
Public Member Functions | |
| KPrGradient (const TQColor &_color1, const TQColor &_color2, BCType _bcType, bool _unbalanced, int _xfactor, int _yfactor) | |
| TQColor | getColor1 () const |
| TQColor | getColor2 () const |
| BCType | getBackColorType () const |
| bool | getUnbalanced () const |
| int | getXFactor () const |
| int | getYFactor () const |
| void | setColor1 (const TQColor &_color) |
| void | setColor2 (const TQColor &_color) |
| void | setBackColorType (BCType _type) |
| void | setUnbalanced (bool b) |
| void | setXFactor (int i) |
| void | setYFactor (int i) |
| void | setSize (const TQSize &_size) |
| void | setParameters (const TQColor &c1, const TQColor &c2, BCType _type, bool _unbalanced, int xf, int yf) |
| const TQPixmap & | pixmap () const |
| TQSize | size () const |
| void | addRef () |
| bool | removeRef () |
Protected Member Functions | |
| void | paint () |
Protected Attributes | |
| TQColor | color1 |
| TQColor | color2 |
| BCType | bcType |
| KPixmap | m_pixmap |
| int | refCount |
| int | xFactor |
| int | yFactor |
| bool | unbalanced |
| bool | m_bDirty |
Detailed Description
Class: KPrGradient.
Encapsulates all gradient related functionality, to share it between KPr2DObject and KPrBackGround. KPrGradient stores the gradient parameters, and generate the gradient on demand, in pixmap().
Definition at line 39 of file KPrGradient.h.
Constructor & Destructor Documentation
◆ KPrGradient() [1/2]
| KPrGradient::KPrGradient | ( | const TQColor & | _color1, |
| const TQColor & | _color2, | ||
| BCType | _bcType, | ||
| bool | _unbalanced, | ||
| int | _xfactor, | ||
| int | _yfactor ) |
Definition at line 26 of file KPrGradient.cpp.
◆ ~KPrGradient()
|
inline |
Definition at line 44 of file KPrGradient.h.
◆ KPrGradient() [2/2]
|
inlineprotected |
Definition at line 84 of file KPrGradient.h.
Member Function Documentation
◆ addRef()
| void KPrGradient::addRef | ( | ) |
Definition at line 47 of file KPrGradient.cpp.
◆ getBackColorType()
|
inline |
Definition at line 48 of file KPrGradient.h.
◆ getColor1()
|
inline |
Definition at line 46 of file KPrGradient.h.
◆ getColor2()
|
inline |
Definition at line 47 of file KPrGradient.h.
◆ getUnbalanced()
|
inline |
Definition at line 49 of file KPrGradient.h.
◆ getXFactor()
|
inline |
Definition at line 50 of file KPrGradient.h.
◆ getYFactor()
|
inline |
Definition at line 51 of file KPrGradient.h.
◆ paint()
|
protected |
Create the pixmap containing the gradient.
Definition at line 57 of file KPrGradient.cpp.
◆ pixmap()
| const TQPixmap & KPrGradient::pixmap | ( | ) | const |
Return the pixmap containing the gradient.
Calculated on demand if necessary (if m_bDirty is true).
Definition at line 130 of file KPrGradient.cpp.
◆ removeRef()
| bool KPrGradient::removeRef | ( | ) |
Definition at line 52 of file KPrGradient.cpp.
◆ setBackColorType()
|
inline |
Definition at line 55 of file KPrGradient.h.
◆ setColor1()
|
inline |
Definition at line 53 of file KPrGradient.h.
◆ setColor2()
|
inline |
Definition at line 54 of file KPrGradient.h.
◆ setParameters()
| void KPrGradient::setParameters | ( | const TQColor & | c1, |
| const TQColor & | c2, | ||
| BCType | _type, | ||
| bool | _unbalanced, | ||
| int | xf, | ||
| int | yf ) |
Definition at line 36 of file KPrGradient.cpp.
◆ setSize()
|
inline |
Definition at line 59 of file KPrGradient.h.
◆ setUnbalanced()
|
inline |
Definition at line 56 of file KPrGradient.h.
◆ setXFactor()
|
inline |
Definition at line 57 of file KPrGradient.h.
◆ setYFactor()
|
inline |
Definition at line 58 of file KPrGradient.h.
◆ size()
|
inline |
Definition at line 75 of file KPrGradient.h.
Member Data Documentation
◆ bcType
|
protected |
Definition at line 87 of file KPrGradient.h.
◆ color1
|
protected |
Definition at line 86 of file KPrGradient.h.
◆ color2
|
protected |
Definition at line 86 of file KPrGradient.h.
◆ m_bDirty
|
protected |
Definition at line 93 of file KPrGradient.h.
◆ m_pixmap
|
protected |
Definition at line 89 of file KPrGradient.h.
◆ refCount
|
protected |
Definition at line 90 of file KPrGradient.h.
◆ unbalanced
|
protected |
Definition at line 92 of file KPrGradient.h.
◆ xFactor
|
protected |
Definition at line 91 of file KPrGradient.h.
◆ yFactor
|
protected |
Definition at line 91 of file KPrGradient.h.
The documentation for this class was generated from the following files:
