1 module libwasm.bindings.PeriodicWave;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 @safe:
7 nothrow:
8 
9 struct PeriodicWave {
10   nothrow:
11   JsHandle handle;
12   alias handle this;
13   this(Handle h) {
14     this.handle = JsHandle(h);
15   }
16 }
17 struct PeriodicWaveConstraints {
18   nothrow:
19   JsHandle handle;
20   alias handle this;
21   this(Handle h) {
22     this.handle = JsHandle(h);
23   }
24   static auto create() {
25     return PeriodicWaveConstraints(libwasm_add__object());
26   }
27   void disableNormalization()(bool disableNormalization) {
28     Object_Call_bool__void(this.handle, "disableNormalization", disableNormalization);
29   }
30   bool disableNormalization()() {
31     return Object_Getter__bool(this.handle, "disableNormalization");
32   }
33 }
34 struct PeriodicWaveOptions {
35   nothrow:
36   libwasm.bindings.PeriodicWave.PeriodicWaveConstraints _parent;
37   alias _parent this;
38   this(Handle h) {
39     _parent = .PeriodicWaveConstraints(h);
40   }
41   static auto create() {
42     return PeriodicWaveOptions(libwasm_add__object());
43   }
44   void real_()(scope ref Sequence!(float) real_) {
45     Object_Call_Handle__void(this._parent, "real", real_.handle);
46   }
47   auto real_()() {
48     return Sequence!(float)(Object_Getter__Handle(this._parent, "real"));
49   }
50   void imag()(scope ref Sequence!(float) imag) {
51     Object_Call_Handle__void(this._parent, "imag", imag.handle);
52   }
53   auto imag()() {
54     return Sequence!(float)(Object_Getter__Handle(this._parent, "imag"));
55   }
56 }
57 
58