SVGFELightElement.h [plain text]
#ifndef SVGFELightElement_h
#define SVGFELightElement_h
#if ENABLE(SVG) && ENABLE(FILTERS)
#include "LightSource.h"
#include "SVGAnimatedNumber.h"
#include "SVGElement.h"
namespace WebCore {
class SVGFELightElement : public SVGElement {
public:
virtual PassRefPtr<LightSource> lightSource() const = 0;
static SVGFELightElement* findLightElement(const SVGElement*);
static PassRefPtr<LightSource> findLightSource(const SVGElement*);
protected:
SVGFELightElement(const QualifiedName&, Document*);
private:
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(Attribute*) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFELightElement)
DECLARE_ANIMATED_NUMBER(Azimuth, azimuth)
DECLARE_ANIMATED_NUMBER(Elevation, elevation)
DECLARE_ANIMATED_NUMBER(X, x)
DECLARE_ANIMATED_NUMBER(Y, y)
DECLARE_ANIMATED_NUMBER(Z, z)
DECLARE_ANIMATED_NUMBER(PointsAtX, pointsAtX)
DECLARE_ANIMATED_NUMBER(PointsAtY, pointsAtY)
DECLARE_ANIMATED_NUMBER(PointsAtZ, pointsAtZ)
DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent)
DECLARE_ANIMATED_NUMBER(LimitingConeAngle, limitingConeAngle)
END_DECLARE_ANIMATED_PROPERTIES
};
}
#endif // ENABLE(SVG) && ENABLE(FILTERS)
#endif