1 module libwasm.bindings.BrowserElementDictionaries;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.Node;
7 
8 @safe:
9 nothrow:
10 
11 struct DOMWindowResizeEventDetail {
12   nothrow:
13   JsHandle handle;
14   alias handle this;
15   this(Handle h) {
16     this.handle = JsHandle(h);
17   }
18   static auto create() {
19     return DOMWindowResizeEventDetail(libwasm_add__object());
20   }
21   void width()(int width) {
22     Object_Call_int__void(this.handle, "width", width);
23   }
24   int width()() {
25     return Object_Getter__int(this.handle, "width");
26   }
27   void height()(int height) {
28     Object_Call_int__void(this.handle, "height", height);
29   }
30   int height()() {
31     return Object_Getter__int(this.handle, "height");
32   }
33 }
34 struct OpenWindowEventDetail {
35   nothrow:
36   JsHandle handle;
37   alias handle this;
38   this(Handle h) {
39     this.handle = JsHandle(h);
40   }
41   static auto create() {
42     return OpenWindowEventDetail(libwasm_add__object());
43   }
44   void url()(string url) {
45     Object_Call_string__void(this.handle, "url", url);
46   }
47   string url()() {
48     return Object_Getter__string(this.handle, "url");
49   }
50   void name()(string name) {
51     Object_Call_string__void(this.handle, "name", name);
52   }
53   string name()() {
54     return Object_Getter__string(this.handle, "name");
55   }
56   void features()(string features) {
57     Object_Call_string__void(this.handle, "features", features);
58   }
59   string features()() {
60     return Object_Getter__string(this.handle, "features");
61   }
62   void frameElement(T0)(scope auto ref Optional!(T0) frameElement) if (isTOrPointer!(T0, Node)) {
63     Serialize_Object_VarArgCall!void(this.handle, "frameElement", "Optional!Handle", tuple(!frameElement.empty, cast(Handle)frameElement.front._parent));
64   }
65   auto frameElement()() {
66     return recastOpt!(Node)(Object_Getter__OptionalHandle(this.handle, "frameElement"));
67   }
68 }
69 
70