29class KoTextZoomHandler;
42 KPrGradient( const TQColor &_color1, const TQColor &_color2, BCType _bcType,
43 bool _unbalanced, int _xfactor, int _yfactor );
46 TQColor getColor1() const { return color1; }
47 TQColor getColor2() const { return color2; }
48 BCType getBackColorType() const { return bcType; }
49 bool getUnbalanced() const { return unbalanced; }
50 int getXFactor() const { return xFactor; }
51 int getYFactor() const { return yFactor; }
53 void setColor1( const TQColor &_color ) { color1 = _color; m_bDirty = true; }
54 void setColor2( const TQColor &_color ) { color2 = _color; m_bDirty = true; }
55 void setBackColorType( BCType _type ) { bcType = _type; m_bDirty = true; }
56 void setUnbalanced( bool b ) { unbalanced = b; m_bDirty = true; }
57 void setXFactor( int i ) { xFactor = i; m_bDirty = true; }
58 void setYFactor( int i ) { yFactor = i; m_bDirty = true; }
59 void setSize( const TQSize& _size )
61 if ( size() != _size ) {
62 m_pixmap.resize( _size );
68 void setParameters( const TQColor &c1, const TQColor &c2, BCType _type,
69 bool _unbalanced, int xf, int yf);
74 const TQPixmap& pixmap() const;
75 TQSize size() const { return m_pixmap.size(); }
86 TQColor color1, color2;
void paint() Create the pixmap containing the gradient.
const TQPixmap & pixmap() const Return the pixmap containing the gradient.
|