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