1 module libwasm.bindings.SVGMarkerElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.SVGAngle;
7 import libwasm.bindings.SVGAnimatedAngle;
8 import libwasm.bindings.SVGAnimatedEnumeration;
9 import libwasm.bindings.SVGAnimatedLength;
10 import libwasm.bindings.SVGAnimatedPreserveAspectRatio;
11 import libwasm.bindings.SVGAnimatedRect;
12 import libwasm.bindings.SVGElement;
13 import libwasm.bindings.SVGFitToViewBox;
14 
15 @safe:
16 nothrow:
17 
18 struct SVGMarkerElement {
19   nothrow:
20   libwasm.bindings.SVGElement.SVGElement _parent;
21   alias _parent this;
22   this(Handle h) {
23     _parent = .SVGElement(h);
24   }
25   enum ushort SVG_MARKERUNITS_UNKNOWN = 0;
26   enum ushort SVG_MARKERUNITS_USERSPACEONUSE = 1;
27   enum ushort SVG_MARKERUNITS_STROKEWIDTH = 2;
28   enum ushort SVG_MARKER_ORIENT_UNKNOWN = 0;
29   enum ushort SVG_MARKER_ORIENT_AUTO = 1;
30   enum ushort SVG_MARKER_ORIENT_ANGLE = 2;
31   auto refX()() {
32     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "refX"));
33   }
34   auto refY()() {
35     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "refY"));
36   }
37   auto markerUnits()() {
38     return SVGAnimatedEnumeration(Object_Getter__Handle(this._parent, "markerUnits"));
39   }
40   auto markerWidth()() {
41     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "markerWidth"));
42   }
43   auto markerHeight()() {
44     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "markerHeight"));
45   }
46   auto orientType()() {
47     return SVGAnimatedEnumeration(Object_Getter__Handle(this._parent, "orientType"));
48   }
49   auto orientAngle()() {
50     return SVGAnimatedAngle(Object_Getter__Handle(this._parent, "orientAngle"));
51   }
52   void setOrientToAuto()() {
53     Object_Call__void(this._parent, "setOrientToAuto");
54   }
55   void setOrientToAngle()(scope ref SVGAngle angle) {
56     Object_Call_Handle__void(this._parent, "setOrientToAngle", angle.handle);
57   }
58   auto viewBox()() {
59     return SVGAnimatedRect(Object_Getter__Handle(this._parent, "viewBox"));
60   }
61   auto preserveAspectRatio()() {
62     return SVGAnimatedPreserveAspectRatio(Object_Getter__Handle(this._parent, "preserveAspectRatio"));
63   }
64 }
65 
66