1 ////////////////////////////////////////////////////////////////////////////// 2 // Name: SVGPatternElement.h 3 // Author: Alex Thuering 4 // Copyright: (c) 2005 Alex Thuering 5 // Licence: wxWindows licence 6 // Notes: generated by generate.py 7 ////////////////////////////////////////////////////////////////////////////// 8 9 #ifndef WX_SVG_PATTERN_ELEMENT_H 10 #define WX_SVG_PATTERN_ELEMENT_H 11 12 #include "SVGElement.h" 13 #include "SVGURIReference.h" 14 #include "SVGTests.h" 15 #include "SVGLangSpace.h" 16 #include "SVGExternalResourcesRequired.h" 17 #include "SVGStylable.h" 18 #include "SVGFitToViewBox.h" 19 #include "SVGUnitTypes.h" 20 #include "SVGAnimatedEnumeration.h" 21 #include "SVGAnimatedTransformList.h" 22 #include "SVGAnimatedLength.h" 23 #include "SVGSVGElement.h" 24 #include "String_wxsvg.h" 25 #include "Element.h" 26 #include "SVGAnimatedType.h" 27 28 class wxSVGPatternElement: 29 public wxSVGElement, 30 public wxSVGURIReference, 31 public wxSVGTests, 32 public wxSVGLangSpace, 33 public wxSVGExternalResourcesRequired, 34 public wxSVGStylable, 35 public wxSVGFitToViewBox, 36 public wxSVGUnitTypes 37 { 38 protected: 39 wxSVGAnimatedEnumeration m_patternUnits; 40 wxSVGAnimatedEnumeration m_patternContentUnits; 41 wxSVGAnimatedTransformList m_patternTransform; 42 wxSVGAnimatedLength m_x; 43 wxSVGAnimatedLength m_y; 44 wxSVGAnimatedLength m_width; 45 wxSVGAnimatedLength m_height; 46 47 public: GetPatternUnits()48 inline const wxSVGAnimatedEnumeration& GetPatternUnits() const { return m_patternUnits; } SetPatternUnits(const wxSVGAnimatedEnumeration & n)49 inline void SetPatternUnits(const wxSVGAnimatedEnumeration& n) { m_patternUnits = n; } SetPatternUnits(unsigned char n)50 inline void SetPatternUnits(unsigned char n) { m_patternUnits.SetBaseVal(n); } 51 GetPatternContentUnits()52 inline const wxSVGAnimatedEnumeration& GetPatternContentUnits() const { return m_patternContentUnits; } SetPatternContentUnits(const wxSVGAnimatedEnumeration & n)53 inline void SetPatternContentUnits(const wxSVGAnimatedEnumeration& n) { m_patternContentUnits = n; } SetPatternContentUnits(unsigned char n)54 inline void SetPatternContentUnits(unsigned char n) { m_patternContentUnits.SetBaseVal(n); } 55 GetPatternTransform()56 inline const wxSVGAnimatedTransformList& GetPatternTransform() const { return m_patternTransform; } SetPatternTransform(const wxSVGAnimatedTransformList & n)57 inline void SetPatternTransform(const wxSVGAnimatedTransformList& n) { m_patternTransform = n; } SetPatternTransform(const wxSVGTransformList & n)58 inline void SetPatternTransform(const wxSVGTransformList& n) { m_patternTransform.SetBaseVal(n); } 59 GetX()60 inline const wxSVGAnimatedLength& GetX() const { WX_SVG_ANIM_LENGTH_CALC_WIDTH(m_x, GetViewportElement()); return m_x; } SetX(const wxSVGAnimatedLength & n)61 inline void SetX(const wxSVGAnimatedLength& n) { m_x = n; } SetX(const wxSVGLength & n)62 inline void SetX(const wxSVGLength& n) { m_x.SetBaseVal(n); } 63 GetY()64 inline const wxSVGAnimatedLength& GetY() const { WX_SVG_ANIM_LENGTH_CALC_HEIGHT(m_y, GetViewportElement()); return m_y; } SetY(const wxSVGAnimatedLength & n)65 inline void SetY(const wxSVGAnimatedLength& n) { m_y = n; } SetY(const wxSVGLength & n)66 inline void SetY(const wxSVGLength& n) { m_y.SetBaseVal(n); } 67 GetWidth()68 inline const wxSVGAnimatedLength& GetWidth() const { WX_SVG_ANIM_LENGTH_CALC_WIDTH(m_width, GetViewportElement()); return m_width; } SetWidth(const wxSVGAnimatedLength & n)69 inline void SetWidth(const wxSVGAnimatedLength& n) { m_width = n; } SetWidth(const wxSVGLength & n)70 inline void SetWidth(const wxSVGLength& n) { m_width.SetBaseVal(n); } 71 GetHeight()72 inline const wxSVGAnimatedLength& GetHeight() const { WX_SVG_ANIM_LENGTH_CALC_HEIGHT(m_height, GetViewportElement()); return m_height; } SetHeight(const wxSVGAnimatedLength & n)73 inline void SetHeight(const wxSVGAnimatedLength& n) { m_height = n; } SetHeight(const wxSVGLength & n)74 inline void SetHeight(const wxSVGLength& n) { m_height.SetBaseVal(n); } 75 76 public: 77 wxSVGPatternElement(wxString tagName = wxT("pattern")): wxSVGElement(tagName)78 wxSVGElement(tagName) {} ~wxSVGPatternElement()79 virtual ~wxSVGPatternElement() {} 80 wxSvgXmlNode* CloneNode(bool deep = true) { return new wxSVGPatternElement(*this); } 81 bool HasAttribute(const wxString& name) const; 82 wxString GetAttribute(const wxString& name) const; 83 bool SetAttribute(const wxString& name, const wxString& value); 84 wxSvgXmlAttrHash GetAttributes() const; 85 bool SetAnimatedValue(const wxString& name, const wxSVGAnimatedType& value); GetDtd()86 virtual wxSVGDTD GetDtd() const { return wxSVG_PATTERN_ELEMENT; } 87 }; 88 89 #endif // WX_SVG_PATTERN_ELEMENT_H 90