1 module libwasm.bindings.SVGGraphicsElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.SVGAnimatedTransformList;
7 import libwasm.bindings.SVGElement;
8 import libwasm.bindings.SVGMatrix;
9 import libwasm.bindings.SVGRect;
10 import libwasm.bindings.SVGStringList;
11 import libwasm.bindings.SVGTests;
12 
13 @safe:
14 nothrow:
15 
16 struct SVGBoundingBoxOptions {
17   nothrow:
18   JsHandle handle;
19   alias handle this;
20   this(Handle h) {
21     this.handle = JsHandle(h);
22   }
23   static auto create() {
24     return SVGBoundingBoxOptions(libwasm_add__object());
25   }
26   void fill()(bool fill) {
27     Object_Call_bool__void(this.handle, "fill", fill);
28   }
29   bool fill()() {
30     return Object_Getter__bool(this.handle, "fill");
31   }
32   void stroke()(bool stroke) {
33     Object_Call_bool__void(this.handle, "stroke", stroke);
34   }
35   bool stroke()() {
36     return Object_Getter__bool(this.handle, "stroke");
37   }
38   void markers()(bool markers) {
39     Object_Call_bool__void(this.handle, "markers", markers);
40   }
41   bool markers()() {
42     return Object_Getter__bool(this.handle, "markers");
43   }
44   void clipped()(bool clipped) {
45     Object_Call_bool__void(this.handle, "clipped", clipped);
46   }
47   bool clipped()() {
48     return Object_Getter__bool(this.handle, "clipped");
49   }
50 }
51 struct SVGGraphicsElement {
52   nothrow:
53   libwasm.bindings.SVGElement.SVGElement _parent;
54   alias _parent this;
55   this(Handle h) {
56     _parent = .SVGElement(h);
57   }
58   auto transform()() {
59     return SVGAnimatedTransformList(Object_Getter__Handle(this._parent, "transform"));
60   }
61   auto nearestViewportElement()() {
62     return recastOpt!(SVGElement)(Object_Getter__OptionalHandle(this._parent, "nearestViewportElement"));
63   }
64   auto farthestViewportElement()() {
65     return recastOpt!(SVGElement)(Object_Getter__OptionalHandle(this._parent, "farthestViewportElement"));
66   }
67   auto getBBox()(scope ref SVGBoundingBoxOptions aOptions) {
68     return SVGRect(Object_Call_Handle__Handle(this._parent, "getBBox", aOptions.handle));
69   }
70   auto getBBox()() {
71     return SVGRect(Object_Getter__Handle(this._parent, "getBBox"));
72   }
73   auto getCTM()() {
74     return recastOpt!(SVGMatrix)(Object_Getter__OptionalHandle(this._parent, "getCTM"));
75   }
76   auto getScreenCTM()() {
77     return recastOpt!(SVGMatrix)(Object_Getter__OptionalHandle(this._parent, "getScreenCTM"));
78   }
79   auto getTransformToElement()(scope ref SVGGraphicsElement element) {
80     return SVGMatrix(Object_Call_Handle__Handle(this._parent, "getTransformToElement", element._parent));
81   }
82   auto requiredFeatures()() {
83     return SVGStringList(Object_Getter__Handle(this._parent, "requiredFeatures"));
84   }
85   auto requiredExtensions()() {
86     return SVGStringList(Object_Getter__Handle(this._parent, "requiredExtensions"));
87   }
88   auto systemLanguage()() {
89     return SVGStringList(Object_Getter__Handle(this._parent, "systemLanguage"));
90   }
91   bool hasExtension()(string extension) {
92     return Object_Call_string__bool(this._parent, "hasExtension", extension);
93   }
94 }
95 
96