2
Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
4
This file is part of the KDE project
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License as published by the Free Software Foundation; either
9
version 2 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Library General Public License for more details.
16
You should have received a copy of the GNU Library General Public License
17
along with this library; see the file COPYING.LIB. If not, write to
18
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
Boston, MA 02111-1307, USA.
22
#ifndef SVGMaskElement_h
23
#define SVGMaskElement_h
27
#include "SVGResourceMasker.h"
28
#include "SVGExternalResourcesRequired.h"
29
#include "SVGLangSpace.h"
30
#include "SVGStyledLocatableElement.h"
32
#include "SVGURIReference.h"
38
class SVGMaskElement : public SVGStyledLocatableElement,
39
public SVGURIReference,
42
public SVGExternalResourcesRequired
45
SVGMaskElement(const QualifiedName&, Document*);
46
virtual ~SVGMaskElement();
47
virtual bool isValid() const { return SVGTests::isValid(); }
49
// 'SVGMaskElement' functions
50
virtual void parseMappedAttribute(MappedAttribute*);
51
virtual void notifyAttributeChange() const;
53
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
54
virtual SVGResource* canvasResource();
57
std::auto_ptr<ImageBuffer> drawMaskerContent();
59
ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href)
60
ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired)
62
ANIMATED_PROPERTY_DECLARATIONS(SVGMaskElement, SVGLength, SVGLength, X, x)
63
ANIMATED_PROPERTY_DECLARATIONS(SVGMaskElement, SVGLength, SVGLength, Y, y)
64
ANIMATED_PROPERTY_DECLARATIONS(SVGMaskElement, SVGLength, SVGLength, Width, width)
65
ANIMATED_PROPERTY_DECLARATIONS(SVGMaskElement, SVGLength, SVGLength, Height, height)
67
virtual const SVGElement* contextElement() const { return this; }
70
RefPtr<SVGResourceMasker> m_masker;
74
} // namespace WebCore