1 module libwasm.bindings.HTMLIFrameElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.BrowserElement;
7 import libwasm.bindings.DOMTokenList;
8 import libwasm.bindings.Document;
9 import libwasm.bindings.FeaturePolicy;
10 import libwasm.bindings.FrameLoader;
11 import libwasm.bindings.HTMLElement;
12 import libwasm.bindings.MozFrameLoaderOwner;
13 
14 @safe:
15 nothrow:
16 
17 struct HTMLIFrameElement {
18   nothrow:
19   libwasm.bindings.HTMLElement.HTMLElement _parent;
20   alias _parent this;
21   this(Handle h) {
22     _parent = .HTMLElement(h);
23   }
24   void src()(string src) {
25     Object_Call_string__void(this._parent, "src", src);
26   }
27   string src()() {
28     return Object_Getter__string(this._parent, "src");
29   }
30   void srcdoc()(string srcdoc) {
31     Object_Call_string__void(this._parent, "srcdoc", srcdoc);
32   }
33   string srcdoc()() {
34     return Object_Getter__string(this._parent, "srcdoc");
35   }
36   void name()(string name) {
37     Object_Call_string__void(this._parent, "name", name);
38   }
39   string name()() {
40     return Object_Getter__string(this._parent, "name");
41   }
42   auto sandbox()() {
43     return DOMTokenList(Object_Getter__Handle(this._parent, "sandbox"));
44   }
45   void allowFullscreen()(bool allowFullscreen) {
46     Object_Call_bool__void(this._parent, "allowFullscreen", allowFullscreen);
47   }
48   bool allowFullscreen()() {
49     return Object_Getter__bool(this._parent, "allowFullscreen");
50   }
51   void allowPaymentRequest()(bool allowPaymentRequest) {
52     Object_Call_bool__void(this._parent, "allowPaymentRequest", allowPaymentRequest);
53   }
54   bool allowPaymentRequest()() {
55     return Object_Getter__bool(this._parent, "allowPaymentRequest");
56   }
57   void width()(string width) {
58     Object_Call_string__void(this._parent, "width", width);
59   }
60   string width()() {
61     return Object_Getter__string(this._parent, "width");
62   }
63   void height()(string height) {
64     Object_Call_string__void(this._parent, "height", height);
65   }
66   string height()() {
67     return Object_Getter__string(this._parent, "height");
68   }
69   void referrerPolicy()(string referrerPolicy) {
70     Object_Call_string__void(this._parent, "referrerPolicy", referrerPolicy);
71   }
72   string referrerPolicy()() {
73     return Object_Getter__string(this._parent, "referrerPolicy");
74   }
75   auto contentDocument()() {
76     return recastOpt!(Document)(Object_Getter__OptionalHandle(this._parent, "contentDocument"));
77   }
78   auto contentWindow()() {
79     return recastOpt!(WindowProxy)(Object_Getter__OptionalHandle(this._parent, "contentWindow"));
80   }
81   void align_()(string align_) {
82     Object_Call_string__void(this._parent, "align", align_);
83   }
84   string align_()() {
85     return Object_Getter__string(this._parent, "align");
86   }
87   void scrolling()(string scrolling) {
88     Object_Call_string__void(this._parent, "scrolling", scrolling);
89   }
90   string scrolling()() {
91     return Object_Getter__string(this._parent, "scrolling");
92   }
93   void frameBorder()(string frameBorder) {
94     Object_Call_string__void(this._parent, "frameBorder", frameBorder);
95   }
96   string frameBorder()() {
97     return Object_Getter__string(this._parent, "frameBorder");
98   }
99   void longDesc()(string longDesc) {
100     Object_Call_string__void(this._parent, "longDesc", longDesc);
101   }
102   string longDesc()() {
103     return Object_Getter__string(this._parent, "longDesc");
104   }
105   void marginHeight()(string marginHeight) {
106     Object_Call_string__void(this._parent, "marginHeight", marginHeight);
107   }
108   string marginHeight()() {
109     return Object_Getter__string(this._parent, "marginHeight");
110   }
111   void marginWidth()(string marginWidth) {
112     Object_Call_string__void(this._parent, "marginWidth", marginWidth);
113   }
114   string marginWidth()() {
115     return Object_Getter__string(this._parent, "marginWidth");
116   }
117   auto getSVGDocument()() {
118     return recastOpt!(Document)(Object_Getter__OptionalHandle(this._parent, "getSVGDocument"));
119   }
120   void mozbrowser()(bool mozbrowser) {
121     Object_Call_bool__void(this._parent, "mozbrowser", mozbrowser);
122   }
123   bool mozbrowser()() {
124     return Object_Getter__bool(this._parent, "mozbrowser");
125   }
126   auto policy()() {
127     return Policy(Object_Getter__Handle(this._parent, "policy"));
128   }
129   void allow()(string allow) {
130     Object_Call_string__void(this._parent, "allow", allow);
131   }
132   string allow()() {
133     return Object_Getter__string(this._parent, "allow");
134   }
135   auto frameLoader()() {
136     return recastOpt!(FrameLoader)(Object_Getter__OptionalHandle(this._parent, "frameLoader"));
137   }
138   void presetOpenerWindow(T0)(scope auto ref Optional!(T0) window) if (isTOrPointer!(T0, WindowProxy)) {
139     Serialize_Object_VarArgCall!void(this._parent, "presetOpenerWindow", "Optional!Handle", tuple(!window.empty, cast(Handle)window.front.handle));
140   }
141   void swapFrameLoaders()(scope ref XULFrameElement aOtherLoaderOwner) {
142     Object_Call_Handle__void(this._parent, "swapFrameLoaders", aOtherLoaderOwner.handle);
143   }
144   void swapFrameLoaders()(scope ref HTMLIFrameElement aOtherLoaderOwner) {
145     Object_Call_Handle__void(this._parent, "swapFrameLoaders", aOtherLoaderOwner._parent);
146   }
147 }
148 
149