SVGMarkerElement.h [plain text]
#ifndef KSVG_SVGMarkerElementImpl_H
#define KSVG_SVGMarkerElementImpl_H
#if SVG_SUPPORT
#include "KCanvasResources.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGFitToViewBox.h"
#include "SVGLangSpace.h"
#include "SVGStyledElement.h"
namespace WebCore
{
class Document;
class SVGAngle;
class SVGAnimatedAngle;
class SVGAnimatedLength;
class SVGAnimatedEnumeration;
class SVGMarkerElement : public SVGStyledElement,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public SVGFitToViewBox
{
public:
SVGMarkerElement(const QualifiedName&, Document*);
virtual ~SVGMarkerElement();
SVGAnimatedLength *refX() const;
SVGAnimatedLength *refY() const;
SVGAnimatedEnumeration *markerUnits() const;
SVGAnimatedLength *markerWidth() const;
SVGAnimatedLength *markerHeight() const;
SVGAnimatedEnumeration *orientType() const;
SVGAnimatedAngle *orientAngle() const;
void setOrientToAuto();
void setOrientToAngle(SVGAngle *angle);
virtual void parseMappedAttribute(MappedAttribute *attr);
virtual bool rendererIsNeeded(RenderStyle *style) { return StyledElement::rendererIsNeeded(style); }
virtual RenderObject *createRenderer(RenderArena *arena, RenderStyle *style);
virtual KCanvasMarker *canvasResource();
private:
mutable RefPtr<SVGAnimatedLength> m_refX;
mutable RefPtr<SVGAnimatedLength> m_refY;
mutable RefPtr<SVGAnimatedLength> m_markerWidth;
mutable RefPtr<SVGAnimatedLength> m_markerHeight;
mutable RefPtr<SVGAnimatedEnumeration> m_markerUnits;
mutable RefPtr<SVGAnimatedEnumeration> m_orientType;
mutable RefPtr<SVGAnimatedAngle> m_orientAngle;
KCanvasMarker *m_marker;
};
};
#endif // SVG_SUPPORT
#endif