KHTML
Go to the documentation of this file.
33 #include <wtf/HashMap.h>
34 #include <wtf/HashSet.h>
35 #include <wtf/RefCounted.h>
43 class SVGStyledElement;
46 enum SVGResourceType {
48 ClipperResourceType = 0,
53 PaintServerResourceType,
69 class SVGResource :
public RefCounted<SVGResource> {
71 virtual ~SVGResource();
73 virtual void invalidate();
75 void addClient(SVGStyledElement*);
76 virtual SVGResourceType resourceType()
const = 0;
78 bool isPaintServer()
const {
return resourceType() == PaintServerResourceType; }
79 bool isFilter()
const {
return resourceType() == FilterResourceType; }
80 bool isClipper()
const {
return resourceType() == ClipperResourceType; }
81 bool isMarker()
const {
return resourceType() == MarkerResourceType; }
82 bool isMasker()
const {
return resourceType() == MaskerResourceType; }
86 static void invalidateClients(HashSet<SVGStyledElement*>);
87 static void removeClient(SVGStyledElement*);
93 HashSet<SVGStyledElement*> m_clients;
96 SVGResource* getResourceById(Document*,
const AtomicString&);
103 #endif // SVGResource_h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.