Skip to main content

web_sys/features/
gen_HtmlIFrameElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "HtmlElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "HTMLIFrameElement",
14        typescript_type = "HTMLIFrameElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlIFrameElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
22    pub type HtmlIFrameElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "src")]
24    #[doc = "Getter for the `src` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
29    pub fn src(this: &HtmlIFrameElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "src")]
31    #[doc = "Setter for the `src` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
36    pub fn set_src(this: &HtmlIFrameElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "srcdoc")]
38    #[doc = "Getter for the `srcdoc` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
43    pub fn srcdoc(this: &HtmlIFrameElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "srcdoc")]
45    #[doc = "Setter for the `srcdoc` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
50    pub fn set_srcdoc(this: &HtmlIFrameElement, value: &str);
51    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "name")]
52    #[doc = "Getter for the `name` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
57    pub fn name(this: &HtmlIFrameElement) -> ::alloc::string::String;
58    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "name")]
59    #[doc = "Setter for the `name` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
64    pub fn set_name(this: &HtmlIFrameElement, value: &str);
65    #[cfg(feature = "DomTokenList")]
66    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "sandbox")]
67    #[doc = "Getter for the `sandbox` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/sandbox)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlIFrameElement`*"]
72    pub fn sandbox(this: &HtmlIFrameElement) -> DomTokenList;
73    #[wasm_bindgen(
74        method,
75        getter,
76        js_class = "HTMLIFrameElement",
77        js_name = "allowFullscreen"
78    )]
79    #[doc = "Getter for the `allowFullscreen` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
84    pub fn allow_fullscreen(this: &HtmlIFrameElement) -> bool;
85    #[wasm_bindgen(
86        method,
87        setter,
88        js_class = "HTMLIFrameElement",
89        js_name = "allowFullscreen"
90    )]
91    #[doc = "Setter for the `allowFullscreen` field of this object."]
92    #[doc = ""]
93    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
96    pub fn set_allow_fullscreen(this: &HtmlIFrameElement, value: bool);
97    #[wasm_bindgen(
98        method,
99        getter,
100        js_class = "HTMLIFrameElement",
101        js_name = "allowPaymentRequest"
102    )]
103    #[doc = "Getter for the `allowPaymentRequest` field of this object."]
104    #[doc = ""]
105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
108    pub fn allow_payment_request(this: &HtmlIFrameElement) -> bool;
109    #[wasm_bindgen(
110        method,
111        setter,
112        js_class = "HTMLIFrameElement",
113        js_name = "allowPaymentRequest"
114    )]
115    #[doc = "Setter for the `allowPaymentRequest` field of this object."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
120    pub fn set_allow_payment_request(this: &HtmlIFrameElement, value: bool);
121    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "width")]
122    #[doc = "Getter for the `width` field of this object."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
127    pub fn width(this: &HtmlIFrameElement) -> ::alloc::string::String;
128    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "width")]
129    #[doc = "Setter for the `width` field of this object."]
130    #[doc = ""]
131    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
134    pub fn set_width(this: &HtmlIFrameElement, value: &str);
135    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "height")]
136    #[doc = "Getter for the `height` field of this object."]
137    #[doc = ""]
138    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"]
139    #[doc = ""]
140    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
141    pub fn height(this: &HtmlIFrameElement) -> ::alloc::string::String;
142    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "height")]
143    #[doc = "Setter for the `height` field of this object."]
144    #[doc = ""]
145    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"]
146    #[doc = ""]
147    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
148    pub fn set_height(this: &HtmlIFrameElement, value: &str);
149    #[wasm_bindgen(
150        method,
151        getter,
152        js_class = "HTMLIFrameElement",
153        js_name = "referrerPolicy"
154    )]
155    #[doc = "Getter for the `referrerPolicy` field of this object."]
156    #[doc = ""]
157    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"]
158    #[doc = ""]
159    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
160    pub fn referrer_policy(this: &HtmlIFrameElement) -> ::alloc::string::String;
161    #[wasm_bindgen(
162        method,
163        setter,
164        js_class = "HTMLIFrameElement",
165        js_name = "referrerPolicy"
166    )]
167    #[doc = "Setter for the `referrerPolicy` field of this object."]
168    #[doc = ""]
169    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"]
170    #[doc = ""]
171    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
172    pub fn set_referrer_policy(this: &HtmlIFrameElement, value: &str);
173    #[cfg(feature = "Document")]
174    #[wasm_bindgen(
175        method,
176        getter,
177        js_class = "HTMLIFrameElement",
178        js_name = "contentDocument"
179    )]
180    #[doc = "Getter for the `contentDocument` field of this object."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"]
185    pub fn content_document(this: &HtmlIFrameElement) -> Option<Document>;
186    #[cfg(feature = "Window")]
187    #[wasm_bindgen(
188        method,
189        getter,
190        js_class = "HTMLIFrameElement",
191        js_name = "contentWindow"
192    )]
193    #[doc = "Getter for the `contentWindow` field of this object."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`, `Window`*"]
198    pub fn content_window(this: &HtmlIFrameElement) -> Option<Window>;
199    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "align")]
200    #[doc = "Getter for the `align` field of this object."]
201    #[doc = ""]
202    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"]
203    #[doc = ""]
204    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
205    pub fn align(this: &HtmlIFrameElement) -> ::alloc::string::String;
206    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "align")]
207    #[doc = "Setter for the `align` field of this object."]
208    #[doc = ""]
209    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
212    pub fn set_align(this: &HtmlIFrameElement, value: &str);
213    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "scrolling")]
214    #[doc = "Getter for the `scrolling` field of this object."]
215    #[doc = ""]
216    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"]
217    #[doc = ""]
218    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
219    pub fn scrolling(this: &HtmlIFrameElement) -> ::alloc::string::String;
220    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "scrolling")]
221    #[doc = "Setter for the `scrolling` field of this object."]
222    #[doc = ""]
223    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"]
224    #[doc = ""]
225    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
226    pub fn set_scrolling(this: &HtmlIFrameElement, value: &str);
227    #[wasm_bindgen(
228        method,
229        getter,
230        js_class = "HTMLIFrameElement",
231        js_name = "frameBorder"
232    )]
233    #[doc = "Getter for the `frameBorder` field of this object."]
234    #[doc = ""]
235    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"]
236    #[doc = ""]
237    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
238    pub fn frame_border(this: &HtmlIFrameElement) -> ::alloc::string::String;
239    #[wasm_bindgen(
240        method,
241        setter,
242        js_class = "HTMLIFrameElement",
243        js_name = "frameBorder"
244    )]
245    #[doc = "Setter for the `frameBorder` field of this object."]
246    #[doc = ""]
247    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"]
248    #[doc = ""]
249    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
250    pub fn set_frame_border(this: &HtmlIFrameElement, value: &str);
251    #[wasm_bindgen(method, getter, js_class = "HTMLIFrameElement", js_name = "longDesc")]
252    #[doc = "Getter for the `longDesc` field of this object."]
253    #[doc = ""]
254    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"]
255    #[doc = ""]
256    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
257    pub fn long_desc(this: &HtmlIFrameElement) -> ::alloc::string::String;
258    #[wasm_bindgen(method, setter, js_class = "HTMLIFrameElement", js_name = "longDesc")]
259    #[doc = "Setter for the `longDesc` field of this object."]
260    #[doc = ""]
261    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"]
262    #[doc = ""]
263    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
264    pub fn set_long_desc(this: &HtmlIFrameElement, value: &str);
265    #[wasm_bindgen(
266        method,
267        getter,
268        js_class = "HTMLIFrameElement",
269        js_name = "marginHeight"
270    )]
271    #[doc = "Getter for the `marginHeight` field of this object."]
272    #[doc = ""]
273    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"]
274    #[doc = ""]
275    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
276    pub fn margin_height(this: &HtmlIFrameElement) -> ::alloc::string::String;
277    #[wasm_bindgen(
278        method,
279        setter,
280        js_class = "HTMLIFrameElement",
281        js_name = "marginHeight"
282    )]
283    #[doc = "Setter for the `marginHeight` field of this object."]
284    #[doc = ""]
285    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"]
286    #[doc = ""]
287    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
288    pub fn set_margin_height(this: &HtmlIFrameElement, value: &str);
289    #[wasm_bindgen(
290        method,
291        getter,
292        js_class = "HTMLIFrameElement",
293        js_name = "marginWidth"
294    )]
295    #[doc = "Getter for the `marginWidth` field of this object."]
296    #[doc = ""]
297    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"]
298    #[doc = ""]
299    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
300    pub fn margin_width(this: &HtmlIFrameElement) -> ::alloc::string::String;
301    #[wasm_bindgen(
302        method,
303        setter,
304        js_class = "HTMLIFrameElement",
305        js_name = "marginWidth"
306    )]
307    #[doc = "Setter for the `marginWidth` field of this object."]
308    #[doc = ""]
309    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"]
310    #[doc = ""]
311    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
312    pub fn set_margin_width(this: &HtmlIFrameElement, value: &str);
313    #[cfg(feature = "Document")]
314    #[wasm_bindgen(method, js_class = "HTMLIFrameElement", js_name = "getSVGDocument")]
315    #[doc = "The `getSVGDocument()` method."]
316    #[doc = ""]
317    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/getSVGDocument)"]
318    #[doc = ""]
319    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"]
320    pub fn get_svg_document(this: &HtmlIFrameElement) -> Option<Document>;
321}