• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
  • svgicons
ksvgiconpainter.h
1/*
2 Copyright (C) 2002 Nikolas Zimmermann <wildfox@kde.org>
3 This file is part of the KDE project
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 aint with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KSVGIconPainter_H
22#define KSVGIconPainter_H
23
24#include <libart_lgpl/art_render.h>
25#include <libart_lgpl/art_render_gradient.h>
26
27class TQImage;
28class TQColor;
29class TQWMatrix;
30class TQDomElement;
31class TQPointArray;
32
33class TDECORE_EXPORT KSVGIconPainter
34{
35public:
36 KSVGIconPainter(int width, int height);
37 ~KSVGIconPainter();
38
39 void setDrawWidth(int dwidth);
40 void setDrawHeight(int dheight);
41
42 TQImage *image();
43
44 TQWMatrix *worldMatrix();
45
46 void finish();
47
48 void setUseFill(bool fill);
49 void setUseStroke(bool stroke);
50
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);
63
64 void setWorldMatrix(TQWMatrix *worldMatrix);
65 void setClippingRect(int x, int y, int w, int h);
66
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);
74
75 TQColor parseColor(const TQString &param);
76 TQ_UINT32 toArtColor(const TQColor &color);
77 TQ_UINT32 parseOpacity(const TQString &data);
78
79 double toPixel(const TQString &s, bool hmode);
80 double dpi();
81
82 ArtGradientLinear *linearGradient(const TQString &id);
83 void addLinearGradient(const TQString &id, ArtGradientLinear *gradient);
84
85 TQDomElement linearGradientElement(ArtGradientLinear *linear);
86 void addLinearGradientElement(ArtGradientLinear *gradient, TQDomElement element);
87
88 ArtGradientRadial *radialGradient(const TQString &id);
89 void addRadialGradient(const TQString &id, ArtGradientRadial *gradient);
90
91 TQDomElement radialGradientElement(ArtGradientRadial *radial);
92 void addRadialGradientElement(ArtGradientRadial *gradient, TQDomElement element);
93
94 TQWMatrix parseTransform(const TQString &transform);
95
96private:
97 struct Private;
98 Private *d;
99};
100
101#endif

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.