1 module libwasm.bindings.DOMPoint;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 @safe:
7 nothrow:
8 
9 struct DOMPoint {
10   nothrow:
11   libwasm.bindings.DOMPoint.DOMPointReadOnly _parent;
12   alias _parent this;
13   this(Handle h) {
14     _parent = .DOMPointReadOnly(h);
15   }
16   auto fromPoint()(scope ref DOMPointInit other) {
17     return DOMPoint(Object_Call_Handle__Handle(this._parent, "fromPoint", other.handle));
18   }
19   auto fromPoint()() {
20     return DOMPoint(Object_Getter__Handle(this._parent, "fromPoint"));
21   }
22   void x()(double x) {
23     Object_Call_double__void(this._parent, "x", x);
24   }
25   double x()() {
26     return Object_Getter__double(this._parent, "x");
27   }
28   void y()(double y) {
29     Object_Call_double__void(this._parent, "y", y);
30   }
31   double y()() {
32     return Object_Getter__double(this._parent, "y");
33   }
34   void z()(double z) {
35     Object_Call_double__void(this._parent, "z", z);
36   }
37   double z()() {
38     return Object_Getter__double(this._parent, "z");
39   }
40   void w()(double w) {
41     Object_Call_double__void(this._parent, "w", w);
42   }
43   double w()() {
44     return Object_Getter__double(this._parent, "w");
45   }
46 }
47 struct DOMPointInit {
48   nothrow:
49   JsHandle handle;
50   alias handle this;
51   this(Handle h) {
52     this.handle = JsHandle(h);
53   }
54   static auto create() {
55     return DOMPointInit(libwasm_add__object());
56   }
57   void x()(double x) {
58     Object_Call_double__void(this.handle, "x", x);
59   }
60   double x()() {
61     return Object_Getter__double(this.handle, "x");
62   }
63   void y()(double y) {
64     Object_Call_double__void(this.handle, "y", y);
65   }
66   double y()() {
67     return Object_Getter__double(this.handle, "y");
68   }
69   void z()(double z) {
70     Object_Call_double__void(this.handle, "z", z);
71   }
72   double z()() {
73     return Object_Getter__double(this.handle, "z");
74   }
75   void w()(double w) {
76     Object_Call_double__void(this.handle, "w", w);
77   }
78   double w()() {
79     return Object_Getter__double(this.handle, "w");
80   }
81 }
82 struct DOMPointReadOnly {
83   nothrow:
84   JsHandle handle;
85   alias handle this;
86   this(Handle h) {
87     this.handle = JsHandle(h);
88   }
89   auto fromPoint()(scope ref DOMPointInit other) {
90     return DOMPointReadOnly(Object_Call_Handle__Handle(this.handle, "fromPoint", other.handle));
91   }
92   auto fromPoint()() {
93     return DOMPointReadOnly(Object_Getter__Handle(this.handle, "fromPoint"));
94   }
95   double x()() {
96     return Object_Getter__double(this.handle, "x");
97   }
98   double y()() {
99     return Object_Getter__double(this.handle, "y");
100   }
101   double z()() {
102     return Object_Getter__double(this.handle, "z");
103   }
104   double w()() {
105     return Object_Getter__double(this.handle, "w");
106   }
107   auto toJSON()() {
108     return JsObject(Object_Getter__Handle(this.handle, "toJSON"));
109   }
110 }
111 
112