1 module libwasm.bindings.SpeechSynthesisEvent;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.Event;
7 import libwasm.bindings.SpeechSynthesisUtterance;
8 
9 @safe:
10 nothrow:
11 
12 struct SpeechSynthesisEvent {
13   nothrow:
14   libwasm.bindings.Event.Event _parent;
15   alias _parent this;
16   this(Handle h) {
17     _parent = .Event(h);
18   }
19   auto utterance()() {
20     return SpeechSynthesisUtterance(Object_Getter__Handle(this._parent, "utterance"));
21   }
22   uint charIndex()() {
23     return Object_Getter__uint(this._parent, "charIndex");
24   }
25   Optional!(uint) charLength()() {
26     return Object_Getter__OptionalUint(this._parent, "charLength");
27   }
28   float elapsedTime()() {
29     return Object_Getter__float(this._parent, "elapsedTime");
30   }
31   Optional!(string) name()() {
32     return Object_Getter__OptionalString(this._parent, "name");
33   }
34 }
35 struct SpeechSynthesisEventInit {
36   nothrow:
37   libwasm.bindings.Event.EventInit _parent;
38   alias _parent this;
39   this(Handle h) {
40     _parent = .EventInit(h);
41   }
42   static auto create() {
43     return SpeechSynthesisEventInit(libwasm_add__object());
44   }
45   void utterance()(scope ref SpeechSynthesisUtterance utterance) {
46     Object_Call_Handle__void(this._parent, "utterance", utterance.handle);
47   }
48   auto utterance()() {
49     return SpeechSynthesisUtterance(Object_Getter__Handle(this._parent, "utterance"));
50   }
51   void charIndex()(uint charIndex) {
52     Object_Call_uint__void(this._parent, "charIndex", charIndex);
53   }
54   uint charIndex()() {
55     return Object_Getter__uint(this._parent, "charIndex");
56   }
57   void charLength(T0)(scope auto ref Optional!(T0) charLength) if (isTOrPointer!(T0, uint)) {
58     Serialize_Object_VarArgCall!void(this._parent, "charLength", "Optional!(uint)", tuple(!charLength.empty, charLength.front));
59   }
60   Optional!(uint) charLength()() {
61     return Object_Getter__OptionalUint(this._parent, "charLength");
62   }
63   void elapsedTime()(float elapsedTime) {
64     Object_Call_float__void(this._parent, "elapsedTime", elapsedTime);
65   }
66   float elapsedTime()() {
67     return Object_Getter__float(this._parent, "elapsedTime");
68   }
69   void name()(string name) {
70     Object_Call_string__void(this._parent, "name", name);
71   }
72   string name()() {
73     return Object_Getter__string(this._parent, "name");
74   }
75 }
76 
77