KHTML
Go to the documentation of this file.
26 #ifndef SVGResourceMarker_h
27 #define SVGResourceMarker_h
36 class GraphicsContext;
37 class RenderSVGViewportContainer;
39 class SVGResourceMarker :
public SVGResource {
41 static PassRefPtr<SVGResourceMarker>
create() {
return adoptRef(
new SVGResourceMarker); }
42 virtual ~SVGResourceMarker();
44 void setMarker(RenderSVGViewportContainer*);
46 void setRef(
double refX,
double refY);
47 double refX()
const {
return m_refX; }
48 double refY()
const {
return m_refY; }
50 void setAngle(
float angle) { m_angle = angle; }
51 void setAutoAngle() { m_angle = -1; }
52 float angle()
const {
return m_angle; }
54 void setUseStrokeWidth(
bool useStrokeWidth =
true) { m_useStrokeWidth = useStrokeWidth; }
55 bool useStrokeWidth()
const {
return m_useStrokeWidth; }
57 FloatRect cachedBounds()
const;
58 void draw(GraphicsContext*,
const FloatRect&,
double x,
double y,
double strokeWidth = 1,
double angle = 0);
60 virtual SVGResourceType resourceType()
const {
return MarkerResourceType; }
61 virtual TextStream& externalRepresentation(TextStream&)
const;
65 double m_refX, m_refY;
66 FloatRect m_cachedBounds;
68 RenderSVGViewportContainer* m_marker;
69 bool m_useStrokeWidth;
72 SVGResourceMarker* getMarkerById(Document*,
const AtomicString&);
78 #endif // SVGResourceMarker_h
KAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.