2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
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.
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.
15 * You should have received a copy of the GNU Library General Public License
16 * along 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.
21 #ifndef SVGFEBlendElement_h
22 #define SVGFEBlendElement_h
24 #include "core/svg/SVGAnimatedEnumeration.h"
25 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
29 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes {
30 DEFINE_WRAPPERTYPEINFO();
40 // The following modes do not map to IDL constants on
55 DECLARE_NODE_FACTORY(SVGFEBlendElement);
56 SVGAnimatedString* in1() { return m_in1.get(); }
57 SVGAnimatedString* in2() { return m_in2.get(); }
58 SVGAnimatedEnumeration<Mode>* mode() { return m_mode.get(); }
61 explicit SVGFEBlendElement(Document&);
63 bool isSupportedAttribute(const QualifiedName&);
64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
65 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& attrName) OVERRIDE;
66 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
67 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
69 RefPtr<SVGAnimatedString> m_in1;
70 RefPtr<SVGAnimatedString> m_in2;
71 RefPtr<SVGAnimatedEnumeration<Mode> > m_mode;
74 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGFEBlendElement::Mode>();
75 template<> unsigned short getMaxExposedEnumValue<SVGFEBlendElement::Mode>();
79 #endif // SVGFEBlendElement_h