SVGFilterPrimitiveStandardAttributes.h [plain text]
#ifndef KSVG_SVGFilterPrimitiveStandardAttributesImpl_H
#define KSVG_SVGFilterPrimitiveStandardAttributesImpl_H
#if SVG_SUPPORT
#include "SVGStyledElement.h"
namespace WebCore {
class KCanvasFilterEffect;
class SVGAnimatedLength;
class SVGAnimatedString;
class SVGFilterPrimitiveStandardAttributes : public SVGStyledElement
{
public:
SVGFilterPrimitiveStandardAttributes(const QualifiedName&, Document*);
virtual ~SVGFilterPrimitiveStandardAttributes();
virtual bool isFilterEffect() const { return true; }
SVGAnimatedLength *x() const;
SVGAnimatedLength *y() const;
SVGAnimatedLength *width() const;
SVGAnimatedLength *height() const;
SVGAnimatedString *result() const;
virtual void parseMappedAttribute(MappedAttribute *attr);
virtual KCanvasFilterEffect *filterEffect() const = 0;
protected:
void setStandardAttributes(KCanvasFilterEffect *filterEffect) const;
private:
mutable RefPtr<SVGAnimatedLength> m_x;
mutable RefPtr<SVGAnimatedLength> m_y;
mutable RefPtr<SVGAnimatedLength> m_width;
mutable RefPtr<SVGAnimatedLength> m_height;
mutable RefPtr<SVGAnimatedString> m_result;
};
};
#endif // SVG_SUPPORT
#endif