1 ////////////////////////////////////////////////////////////////////////////// 2 // Name: SVGClipPathElement.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_CLIP_PATH_ELEMENT_H 10 #define WX_SVG_CLIP_PATH_ELEMENT_H 11 12 #include "SVGElement.h" 13 #include "SVGTests.h" 14 #include "SVGLangSpace.h" 15 #include "SVGExternalResourcesRequired.h" 16 #include "SVGStylable.h" 17 #include "SVGTransformable.h" 18 #include "SVGUnitTypes.h" 19 #include "SVGAnimatedEnumeration.h" 20 #include "String_wxsvg.h" 21 #include "Element.h" 22 #include "SVGAnimatedType.h" 23 24 class wxSVGClipPathElement: 25 public wxSVGElement, 26 public wxSVGTests, 27 public wxSVGLangSpace, 28 public wxSVGExternalResourcesRequired, 29 public wxSVGStylable, 30 public wxSVGTransformable, 31 public wxSVGUnitTypes 32 { 33 protected: 34 wxSVGAnimatedEnumeration m_clipPathUnits; 35 36 public: GetClipPathUnits()37 inline const wxSVGAnimatedEnumeration& GetClipPathUnits() const { return m_clipPathUnits; } SetClipPathUnits(const wxSVGAnimatedEnumeration & n)38 inline void SetClipPathUnits(const wxSVGAnimatedEnumeration& n) { m_clipPathUnits = n; } SetClipPathUnits(unsigned char n)39 inline void SetClipPathUnits(unsigned char n) { m_clipPathUnits.SetBaseVal(n); } 40 41 public: 42 wxSVGClipPathElement(wxString tagName = wxT("clipPath")): wxSVGElement(tagName)43 wxSVGElement(tagName) {} ~wxSVGClipPathElement()44 virtual ~wxSVGClipPathElement() {} 45 wxSvgXmlNode* CloneNode(bool deep = true) { return new wxSVGClipPathElement(*this); } 46 wxSVGRect GetBBox(wxSVG_COORDINATES coordinates = wxSVG_COORDINATES_USER) { return wxSVGLocatable::GetChildrenBBox(this, coordinates); } 47 wxSVGRect GetResultBBox(wxSVG_COORDINATES coordinates = wxSVG_COORDINATES_USER) { return wxSVGLocatable::GetChildrenResultBBox(this, coordinates); } GetCTM()48 wxSVGMatrix GetCTM() { return wxSVGLocatable::GetCTM(this); } GetScreenCTM()49 wxSVGMatrix GetScreenCTM() { return wxSVGLocatable::GetScreenCTM(this); } 50 bool HasAttribute(const wxString& name) const; 51 wxString GetAttribute(const wxString& name) const; 52 bool SetAttribute(const wxString& name, const wxString& value); 53 wxSvgXmlAttrHash GetAttributes() const; 54 bool SetAnimatedValue(const wxString& name, const wxSVGAnimatedType& value); GetDtd()55 virtual wxSVGDTD GetDtd() const { return wxSVG_CLIPPATH_ELEMENT; } 56 }; 57 58 #endif // WX_SVG_CLIP_PATH_ELEMENT_H 59