Scribus
Open source desktop publishing at your fingertips
ScPainter Class Reference
Collaboration diagram for ScPainter:

Public Types

enum  FillMode {
  None, Solid, Gradient, Pattern,
  Hatch
}
 

Public Member Functions

 ScPainter (QImage *target, unsigned int w, unsigned int h, double transparency=1.0, int blendmode=0)
 
virtual void beginLayer (double transparency, int blendmode, FPointArray *clipArray=0)
 
virtual void endLayer ()
 
virtual void setAntialiasing (bool enable)
 
virtual void begin ()
 
virtual void end ()
 
void clear ()
 
virtual void clear (const QColor &)
 
virtual void setWorldMatrix (const QTransform &)
 
virtual const QTransform worldMatrix ()
 
virtual void setZoomFactor (double)
 
virtual double zoomFactor ()
 
virtual void translate (double, double)
 
virtual void translate (const QPointF &offset)
 
virtual void rotate (double)
 
virtual void scale (double, double)
 
virtual void moveTo (const double &, const double &)
 
virtual void lineTo (const double &, const double &)
 
virtual void curveTo (FPoint p1, FPoint p2, FPoint p3)
 
virtual void newPath ()
 
virtual void closePath ()
 
virtual void fillPath ()
 
virtual void strokePath ()
 
virtual void setFillRule (bool fillRule)
 
virtual bool fillRule ()
 
virtual void setFillMode (int fill)
 
virtual void setStrokeMode (int stroke)
 
virtual void setGradient (VGradient::VGradientType mode, FPoint orig, FPoint vec, FPoint foc, double scale, double skew)
 
virtual void setPattern (ScPattern *pattern, double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, bool mirrorX, bool mirrorY)
 
virtual void setMaskMode (int mask)
 
virtual void setGradientMask (VGradient::VGradientType mode, FPoint orig, FPoint vec, FPoint foc, double scale, double skew)
 
virtual void setPatternMask (ScPattern *pattern, double scaleX, double scaleY, double offsetX, double offsetY, double rotation, double skewX, double skewY, bool mirrorX, bool mirrorY)
 
virtual void set4ColorGeometry (FPoint p1, FPoint p2, FPoint p3, FPoint p4, FPoint c1, FPoint c2, FPoint c3, FPoint c4)
 
virtual void set4ColorColors (QColor col1, QColor col2, QColor col3, QColor col4)
 
virtual void setDiamondGeometry (FPoint p1, FPoint p2, FPoint p3, FPoint p4, FPoint c1, FPoint c2, FPoint c3, FPoint c4, FPoint c5)
 
virtual void setMeshGradient (FPoint p1, FPoint p2, FPoint p3, FPoint p4, QList< QList< meshPoint > > meshArray)
 
virtual void setMeshGradient (FPoint p1, FPoint p2, FPoint p3, FPoint p4, QList< meshGradientPatch > meshPatches)
 
virtual void setHatchParameters (int mode, double distance, double angle, bool useBackground, QColor background, QColor foreground, double width, double height)
 
virtual void setClipPath ()
 
virtual void drawImage (QImage *image)
 
virtual void setupPolygon (FPointArray *points, bool closed=true)
 
virtual void setupSharpPolygon (FPointArray *points, bool closed=true)
 
virtual void sharpLineHelper (FPoint &pp)
 
virtual void sharpLineHelper (QPointF &pp)
 
virtual void drawPolygon ()
 
virtual void drawPolyLine ()
 
virtual void drawLine (FPoint start, FPoint end)
 
virtual void drawLine (const QPointF &start, const QPointF &end)
 
virtual void drawSharpLine (FPoint start, FPoint end)
 
virtual void drawSharpLine (QPointF start, QPointF end)
 
virtual void drawRect (double, double, double, double)
 
virtual void drawSharpRect (double x, double y, double w, double h)
 
virtual void drawText (QRectF area, QString text, bool filled=true, int align=0)
 
virtual void drawShadeCircle (const QRectF &re, const QColor color, bool sunken, int lineWidth)
 
virtual void drawShadePanel (const QRectF &r, const QColor color, bool sunken, int lineWidth)
 
virtual void colorizeAlpha (QColor color)
 
virtual void colorize (QColor color)
 
virtual void blurAlpha (int radius)
 
virtual void blur (int radius)
 
virtual QColor pen ()
 
virtual QColor brush ()
 
virtual void setPen (const QColor &)
 
virtual void setPen (const QColor &c, double w, Qt::PenStyle st, Qt::PenCapStyle ca, Qt::PenJoinStyle jo)
 
virtual void setPenOpacity (double op)
 
virtual void setLineWidth (double w)
 
virtual void setDash (const QVector< double > &array, double ofs)
 
virtual void setBrush (const QColor &)
 
virtual void setBrushOpacity (double op)
 
virtual void setOpacity (double op)
 
virtual void setFont (const QFont &f)
 
virtual QFont font ()
 
virtual void save ()
 
virtual void restore ()
 
virtual void setRasterOp (int blendMode)
 
virtual void setBlendModeFill (int blendMode)
 
virtual void setBlendModeStroke (int blendMode)
 

Public Attributes

VGradient fill_gradient
 
VGradient stroke_gradient
 
VGradient mask_gradient
 
ScPatternm_maskPattern
 
ScPatternm_pattern
 

The documentation for this class was generated from the following files: