KHTML
Go to the documentation of this file.
26 #ifndef SVGResourceClipper_h
27 #define SVGResourceClipper_h
35 #include "wtf/PassRefPtr.h"
47 void addPath(
const Path& pathData, WindRule windRule,
bool bboxUnits)
51 clipData.path = pathData;
52 clipData.windRule = windRule;
53 clipData.bboxUnits = bboxUnits;
55 m_clipData.append(clipData);
58 void clear() { m_clipData.clear(); }
59 const Vector<ClipData>& clipData()
const {
return m_clipData; }
60 bool isEmpty()
const {
return m_clipData.isEmpty(); }
62 Vector<ClipData> m_clipData;
67 class SVGResourceClipper :
public SVGResource {
69 static PassRefPtr<SVGResourceClipper>
create() {
return adoptRef(
new SVGResourceClipper); }
70 virtual ~SVGResourceClipper();
73 void addClipData(
const Path&, WindRule,
bool bboxUnits);
75 const ClipDataList& clipData()
const;
77 virtual SVGResourceType resourceType()
const {
return ClipperResourceType; }
81 void applyClip(
QPainter* painter,
const FloatRect& boundingBox)
const;
84 ClipDataList m_clipData;
90 SVGResourceClipper* getClipperById(Document*,
const AtomicString&);
96 #endif // SVGResourceClipper_h
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
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.