kpresenter

KPrGradient Class Reference

#include <KPrGradient.h>

List of all members.


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 40 of file KPrGradient.h.


Public Member Functions

 KPrGradient (const QColor &_color1, const QColor &_color2, BCType _bcType, bool _unbalanced, int _xfactor, int _yfactor)
 ~KPrGradient ()
QColor getColor1 () const
QColor getColor2 () const
BCType getBackColorType () const
bool getUnbalanced () const
int getXFactor () const
int getYFactor () const
void setColor1 (const QColor &_color)
void setColor2 (const QColor &_color)
void setBackColorType (BCType _type)
void setUnbalanced (bool b)
void setXFactor (int i)
void setYFactor (int i)
void setSize (const QSize &_size)
void setParameters (const QColor &c1, const QColor &c2, BCType _type, bool _unbalanced, int xf, int yf)
const QPixmap & pixmap () const
QSize size () const
void addRef ()
bool removeRef ()

Protected Member Functions

void paint ()
 KPrGradient ()

Protected Attributes

QColor color1
QColor color2
BCType bcType
KPixmap m_pixmap
int refCount
int xFactor
int yFactor
bool unbalanced
bool m_bDirty

Member Function Documentation

const QPixmap & KPrGradient::pixmap (  )  const

Return the pixmap containing the gradient.

Calculated on demand if necessary (if m_bDirty is true).

Definition at line 131 of file KPrGradient.cpp.

void KPrGradient::paint (  )  [protected]

Create the pixmap containing the gradient.

Definition at line 58 of file KPrGradient.cpp.


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