SVGPreserveAspectRatio.h [plain text]
#ifndef KSVG_SVGPreserveAspectRatioImpl_H
#define KSVG_SVGPreserveAspectRatioImpl_H
#if SVG_SUPPORT
#include "Shared.h"
namespace WebCore
{
class StringImpl;
};
namespace WebCore
{
class SVGMatrix;
class SVGStyledElement;
class SVGPreserveAspectRatio : public Shared<SVGPreserveAspectRatio>
{
public:
SVGPreserveAspectRatio(const SVGStyledElement *context);
virtual ~SVGPreserveAspectRatio();
void setAlign(unsigned short);
unsigned short align() const;
void setMeetOrSlice(unsigned short);
unsigned short meetOrSlice() const;
SVGMatrix *getCTM(float logicX, float logicY,
float logicWidth, float logicHeight,
float physX, float physY, float physWidth,
float physHeight);
void parsePreserveAspectRatio(StringImpl *string);
protected:
unsigned short m_align;
unsigned short m_meetOrSlice;
const SVGStyledElement *m_context;
};
};
#endif // SVG_SUPPORT
#endif