1 module libwasm.bindings.Touch;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.EventTarget;
7 
8 @safe:
9 nothrow:
10 
11 struct Touch {
12   nothrow:
13   JsHandle handle;
14   alias handle this;
15   this(Handle h) {
16     this.handle = JsHandle(h);
17   }
18   int identifier()() {
19     return Object_Getter__int(this.handle, "identifier");
20   }
21   auto target()() {
22     return recastOpt!(EventTarget)(Object_Getter__OptionalHandle(this.handle, "target"));
23   }
24   int screenX()() {
25     return Object_Getter__int(this.handle, "screenX");
26   }
27   int screenY()() {
28     return Object_Getter__int(this.handle, "screenY");
29   }
30   int clientX()() {
31     return Object_Getter__int(this.handle, "clientX");
32   }
33   int clientY()() {
34     return Object_Getter__int(this.handle, "clientY");
35   }
36   int pageX()() {
37     return Object_Getter__int(this.handle, "pageX");
38   }
39   int pageY()() {
40     return Object_Getter__int(this.handle, "pageY");
41   }
42   int radiusX()() {
43     return Object_Getter__int(this.handle, "radiusX");
44   }
45   int radiusY()() {
46     return Object_Getter__int(this.handle, "radiusY");
47   }
48   float rotationAngle()() {
49     return Object_Getter__float(this.handle, "rotationAngle");
50   }
51   float force()() {
52     return Object_Getter__float(this.handle, "force");
53   }
54 }
55 struct TouchInit {
56   nothrow:
57   JsHandle handle;
58   alias handle this;
59   this(Handle h) {
60     this.handle = JsHandle(h);
61   }
62   static auto create() {
63     return TouchInit(libwasm_add__object());
64   }
65   void identifier()(int identifier) {
66     Object_Call_int__void(this.handle, "identifier", identifier);
67   }
68   int identifier()() {
69     return Object_Getter__int(this.handle, "identifier");
70   }
71   void target()(scope ref EventTarget target) {
72     Object_Call_Handle__void(this.handle, "target", target.handle);
73   }
74   auto target()() {
75     return EventTarget(Object_Getter__Handle(this.handle, "target"));
76   }
77   void clientX()(int clientX) {
78     Object_Call_int__void(this.handle, "clientX", clientX);
79   }
80   int clientX()() {
81     return Object_Getter__int(this.handle, "clientX");
82   }
83   void clientY()(int clientY) {
84     Object_Call_int__void(this.handle, "clientY", clientY);
85   }
86   int clientY()() {
87     return Object_Getter__int(this.handle, "clientY");
88   }
89   void screenX()(int screenX) {
90     Object_Call_int__void(this.handle, "screenX", screenX);
91   }
92   int screenX()() {
93     return Object_Getter__int(this.handle, "screenX");
94   }
95   void screenY()(int screenY) {
96     Object_Call_int__void(this.handle, "screenY", screenY);
97   }
98   int screenY()() {
99     return Object_Getter__int(this.handle, "screenY");
100   }
101   void pageX()(int pageX) {
102     Object_Call_int__void(this.handle, "pageX", pageX);
103   }
104   int pageX()() {
105     return Object_Getter__int(this.handle, "pageX");
106   }
107   void pageY()(int pageY) {
108     Object_Call_int__void(this.handle, "pageY", pageY);
109   }
110   int pageY()() {
111     return Object_Getter__int(this.handle, "pageY");
112   }
113   void radiusX()(float radiusX) {
114     Object_Call_float__void(this.handle, "radiusX", radiusX);
115   }
116   float radiusX()() {
117     return Object_Getter__float(this.handle, "radiusX");
118   }
119   void radiusY()(float radiusY) {
120     Object_Call_float__void(this.handle, "radiusY", radiusY);
121   }
122   float radiusY()() {
123     return Object_Getter__float(this.handle, "radiusY");
124   }
125   void rotationAngle()(float rotationAngle) {
126     Object_Call_float__void(this.handle, "rotationAngle", rotationAngle);
127   }
128   float rotationAngle()() {
129     return Object_Getter__float(this.handle, "rotationAngle");
130   }
131   void force()(float force) {
132     Object_Call_float__void(this.handle, "force", force);
133   }
134   float force()() {
135     return Object_Getter__float(this.handle, "force");
136   }
137 }
138 
139