SVGRadialGradientElement.h [plain text]
#ifndef KSVG_SVGRadialGradientElementImpl_H
#define KSVG_SVGRadialGradientElementImpl_H
#if SVG_SUPPORT
#include <SVGGradientElement.h>
namespace WebCore
{
class SVGAnimatedLength;
class SVGRadialGradientElement : public SVGGradientElement
{
public:
SVGRadialGradientElement(const QualifiedName&, Document*);
virtual ~SVGRadialGradientElement();
SVGAnimatedLength *cx() const;
SVGAnimatedLength *cy() const;
SVGAnimatedLength *fx() const;
SVGAnimatedLength *fy() const;
SVGAnimatedLength *r() const;
virtual void parseMappedAttribute(MappedAttribute *attr);
protected:
virtual void buildGradient(KRenderingPaintServerGradient *grad) const;
virtual KCPaintServerType gradientType() const { return PS_RADIAL_GRADIENT; }
private:
mutable RefPtr<SVGAnimatedLength> m_cx;
mutable RefPtr<SVGAnimatedLength> m_cy;
mutable RefPtr<SVGAnimatedLength> m_r;
mutable RefPtr<SVGAnimatedLength> m_fx;
mutable RefPtr<SVGAnimatedLength> m_fy;
};
};
#endif // SVG_SUPPORT
#endif