1 module libwasm.bindings.PerformanceEntryEvent;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.Event;
7 import libwasm.bindings.Performance;
8 
9 @safe:
10 nothrow:
11 
12 struct PerformanceEntryEvent {
13   nothrow:
14   libwasm.bindings.Event.Event _parent;
15   alias _parent this;
16   this(Handle h) {
17     _parent = .Event(h);
18   }
19   string name()() {
20     return Object_Getter__string(this._parent, "name");
21   }
22   string entryType()() {
23     return Object_Getter__string(this._parent, "entryType");
24   }
25   double startTime()() {
26     return Object_Getter__double(this._parent, "startTime");
27   }
28   double duration()() {
29     return Object_Getter__double(this._parent, "duration");
30   }
31   double epoch()() {
32     return Object_Getter__double(this._parent, "epoch");
33   }
34   string origin()() {
35     return Object_Getter__string(this._parent, "origin");
36   }
37 }
38 struct PerformanceEntryEventInit {
39   nothrow:
40   libwasm.bindings.Event.EventInit _parent;
41   alias _parent this;
42   this(Handle h) {
43     _parent = .EventInit(h);
44   }
45   static auto create() {
46     return PerformanceEntryEventInit(libwasm_add__object());
47   }
48   void name()(string name) {
49     Object_Call_string__void(this._parent, "name", name);
50   }
51   string name()() {
52     return Object_Getter__string(this._parent, "name");
53   }
54   void entryType()(string entryType) {
55     Object_Call_string__void(this._parent, "entryType", entryType);
56   }
57   string entryType()() {
58     return Object_Getter__string(this._parent, "entryType");
59   }
60   void startTime()(double startTime) {
61     Object_Call_double__void(this._parent, "startTime", startTime);
62   }
63   double startTime()() {
64     return Object_Getter__double(this._parent, "startTime");
65   }
66   void duration()(double duration) {
67     Object_Call_double__void(this._parent, "duration", duration);
68   }
69   double duration()() {
70     return Object_Getter__double(this._parent, "duration");
71   }
72   void epoch()(double epoch) {
73     Object_Call_double__void(this._parent, "epoch", epoch);
74   }
75   double epoch()() {
76     return Object_Getter__double(this._parent, "epoch");
77   }
78   void origin()(string origin) {
79     Object_Call_string__void(this._parent, "origin", origin);
80   }
81   string origin()() {
82     return Object_Getter__string(this._parent, "origin");
83   }
84 }
85 
86