1 module libwasm.bindings.SVGSVGElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.Element;
7 import libwasm.bindings.SVGAngle;
8 import libwasm.bindings.SVGAnimatedLength;
9 import libwasm.bindings.SVGAnimatedPreserveAspectRatio;
10 import libwasm.bindings.SVGAnimatedRect;
11 import libwasm.bindings.SVGFitToViewBox;
12 import libwasm.bindings.SVGGraphicsElement;
13 import libwasm.bindings.SVGLength;
14 import libwasm.bindings.SVGMatrix;
15 import libwasm.bindings.SVGNumber;
16 import libwasm.bindings.SVGPoint;
17 import libwasm.bindings.SVGRect;
18 import libwasm.bindings.SVGTransform;
19 import libwasm.bindings.SVGZoomAndPanValues;
20 
21 @safe:
22 nothrow:
23 
24 struct SVGSVGElement {
25   nothrow:
26   libwasm.bindings.SVGGraphicsElement.SVGGraphicsElement _parent;
27   alias _parent this;
28   this(Handle h) {
29     _parent = .SVGGraphicsElement(h);
30   }
31   auto x()() {
32     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "x"));
33   }
34   auto y()() {
35     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "y"));
36   }
37   auto width()() {
38     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "width"));
39   }
40   auto height()() {
41     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "height"));
42   }
43   bool useCurrentView()() {
44     return Object_Getter__bool(this._parent, "useCurrentView");
45   }
46   void currentScale()(float currentScale) {
47     Object_Call_float__void(this._parent, "currentScale", currentScale);
48   }
49   float currentScale()() {
50     return Object_Getter__float(this._parent, "currentScale");
51   }
52   auto currentTranslate()() {
53     return SVGPoint(Object_Getter__Handle(this._parent, "currentTranslate"));
54   }
55   uint suspendRedraw()(uint maxWaitMilliseconds) {
56     return Serialize_Object_VarArgCall!uint(this._parent, "suspendRedraw", "uint", tuple(maxWaitMilliseconds));
57   }
58   void unsuspendRedraw()(uint suspendHandleID) {
59     Object_Call_uint__void(this._parent, "unsuspendRedraw", suspendHandleID);
60   }
61   void unsuspendRedrawAll()() {
62     Object_Call__void(this._parent, "unsuspendRedrawAll");
63   }
64   void forceRedraw()() {
65     Object_Call__void(this._parent, "forceRedraw");
66   }
67   void pauseAnimations()() {
68     Object_Call__void(this._parent, "pauseAnimations");
69   }
70   void unpauseAnimations()() {
71     Object_Call__void(this._parent, "unpauseAnimations");
72   }
73   bool animationsPaused()() {
74     return Object_Getter__bool(this._parent, "animationsPaused");
75   }
76   float getCurrentTime()() {
77     return Object_Getter__float(this._parent, "getCurrentTime");
78   }
79   void setCurrentTime()(float seconds) {
80     Object_Call_float__void(this._parent, "setCurrentTime", seconds);
81   }
82   void deselectAll()() {
83     Object_Call__void(this._parent, "deselectAll");
84   }
85   auto createSVGNumber()() {
86     return SVGNumber(Object_Getter__Handle(this._parent, "createSVGNumber"));
87   }
88   auto createSVGLength()() {
89     return SVGLength(Object_Getter__Handle(this._parent, "createSVGLength"));
90   }
91   auto createSVGAngle()() {
92     return SVGAngle(Object_Getter__Handle(this._parent, "createSVGAngle"));
93   }
94   auto createSVGPoint()() {
95     return SVGPoint(Object_Getter__Handle(this._parent, "createSVGPoint"));
96   }
97   auto createSVGMatrix()() {
98     return SVGMatrix(Object_Getter__Handle(this._parent, "createSVGMatrix"));
99   }
100   auto createSVGRect()() {
101     return SVGRect(Object_Getter__Handle(this._parent, "createSVGRect"));
102   }
103   auto createSVGTransform()() {
104     return SVGTransform(Object_Getter__Handle(this._parent, "createSVGTransform"));
105   }
106   auto createSVGTransformFromMatrix()(scope ref SVGMatrix matrix) {
107     return SVGTransform(Object_Call_Handle__Handle(this._parent, "createSVGTransformFromMatrix", matrix.handle));
108   }
109   auto getElementById()(string elementId) {
110     return recastOpt!(Element)(Object_Call_string__OptionalHandle(this._parent, "getElementById", elementId));
111   }
112   auto viewBox()() {
113     return SVGAnimatedRect(Object_Getter__Handle(this._parent, "viewBox"));
114   }
115   auto preserveAspectRatio()() {
116     return SVGAnimatedPreserveAspectRatio(Object_Getter__Handle(this._parent, "preserveAspectRatio"));
117   }
118   enum ushort SVG_ZOOMANDPAN_UNKNOWN = 0;
119   enum ushort SVG_ZOOMANDPAN_DISABLE = 1;
120   enum ushort SVG_ZOOMANDPAN_MAGNIFY = 2;
121   void zoomAndPan()(ushort zoomAndPan) {
122     Serialize_Object_VarArgCall!void(this._parent, "zoomAndPan", "ushort", tuple(zoomAndPan));
123   }
124   ushort zoomAndPan()() {
125     return Object_Getter__ushort(this._parent, "zoomAndPan");
126   }
127 }
128 
129