21 #ifndef KSVGIconPainter_H
22 #define KSVGIconPainter_H
24 #include <libart_lgpl/art_render.h>
25 #include <libart_lgpl/art_render_gradient.h>
33 class TDECORE_EXPORT KSVGIconPainter
36 KSVGIconPainter(
int width,
int height);
39 void setDrawWidth(
int dwidth);
40 void setDrawHeight(
int dheight);
44 TQWMatrix *worldMatrix();
48 void setUseFill(
bool fill);
49 void setUseStroke(
bool stroke);
51 void setStrokeWidth(
double width);
52 void setStrokeMiterLimit(
const TQString &miter);
53 void setCapStyle(
const TQString &cap);
54 void setJoinStyle(
const TQString &join);
55 void setStrokeColor(
const TQString &stroke);
56 void setFillColor(
const TQString &fill);
57 void setFillRule(
const TQString &fillRule);
58 void setOpacity(
const TQString &opacity);
59 void setFillOpacity(
const TQString &fillOpacity);
60 void setStrokeOpacity(
const TQString &strokeOpacity);
61 void setStrokeDashOffset(
const TQString &dashOffset);
62 void setStrokeDashArray(
const TQString &dashes);
64 void setWorldMatrix(TQWMatrix *worldMatrix);
65 void setClippingRect(
int x,
int y,
int w,
int h);
67 void drawRectangle(
double x,
double y,
double w,
double h,
double rx,
double ry);
68 void drawEllipse(
double cx,
double cy,
double rx,
double ry);
69 void drawLine(
double x1,
double y1,
double x2,
double y2);
70 void drawPolyline(TQPointArray polyArray,
int points = -1);
71 void drawPolygon(TQPointArray polyArray);
72 void drawPath(
const TQString &data,
bool fill);
73 void drawImage(
double x,
double y, TQImage &image);
75 TQColor parseColor(
const TQString ¶m);
76 TQ_UINT32 toArtColor(
const TQColor &color);
77 TQ_UINT32 parseOpacity(
const TQString &data);
79 double toPixel(
const TQString &s,
bool hmode);
82 ArtGradientLinear *linearGradient(
const TQString &
id);
83 void addLinearGradient(
const TQString &
id, ArtGradientLinear *gradient);
85 TQDomElement linearGradientElement(ArtGradientLinear *linear);
86 void addLinearGradientElement(ArtGradientLinear *gradient, TQDomElement element);
88 ArtGradientRadial *radialGradient(
const TQString &
id);
89 void addRadialGradient(
const TQString &
id, ArtGradientRadial *gradient);
91 TQDomElement radialGradientElement(ArtGradientRadial *radial);
92 void addRadialGradientElement(ArtGradientRadial *gradient, TQDomElement element);
94 TQWMatrix parseTransform(
const TQString &transform);