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 (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLIFrameElement , typescript_type = "HTMLIFrameElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `HtmlIFrameElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
14    pub type HtmlIFrameElement;
15    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = src)]
16    #[doc = "Getter for the `src` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
21    pub fn src(this: &HtmlIFrameElement) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = src)]
23    #[doc = "Setter for the `src` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
28    pub fn set_src(this: &HtmlIFrameElement, value: &str);
29    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = srcdoc)]
30    #[doc = "Getter for the `srcdoc` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
35    pub fn srcdoc(this: &HtmlIFrameElement) -> ::alloc::string::String;
36    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = srcdoc)]
37    #[doc = "Setter for the `srcdoc` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
42    pub fn set_srcdoc(this: &HtmlIFrameElement, value: &str);
43    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = name)]
44    #[doc = "Getter for the `name` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
49    pub fn name(this: &HtmlIFrameElement) -> ::alloc::string::String;
50    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = name)]
51    #[doc = "Setter for the `name` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
56    pub fn set_name(this: &HtmlIFrameElement, value: &str);
57    #[cfg(feature = "DomTokenList")]
58    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = sandbox)]
59    #[doc = "Getter for the `sandbox` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/sandbox)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlIFrameElement`*"]
64    pub fn sandbox(this: &HtmlIFrameElement) -> DomTokenList;
65    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)]
66    #[doc = "Getter for the `allowFullscreen` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
71    pub fn allow_fullscreen(this: &HtmlIFrameElement) -> bool;
72    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen)]
73    #[doc = "Setter for the `allowFullscreen` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
78    pub fn set_allow_fullscreen(this: &HtmlIFrameElement, value: bool);
79    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)]
80    #[doc = "Getter for the `allowPaymentRequest` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
85    pub fn allow_payment_request(this: &HtmlIFrameElement) -> bool;
86    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest)]
87    #[doc = "Setter for the `allowPaymentRequest` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
92    pub fn set_allow_payment_request(this: &HtmlIFrameElement, value: bool);
93    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = width)]
94    #[doc = "Getter for the `width` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
99    pub fn width(this: &HtmlIFrameElement) -> ::alloc::string::String;
100    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = width)]
101    #[doc = "Setter for the `width` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
106    pub fn set_width(this: &HtmlIFrameElement, value: &str);
107    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = height)]
108    #[doc = "Getter for the `height` field of this object."]
109    #[doc = ""]
110    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
113    pub fn height(this: &HtmlIFrameElement) -> ::alloc::string::String;
114    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = height)]
115    #[doc = "Setter for the `height` field of this object."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
120    pub fn set_height(this: &HtmlIFrameElement, value: &str);
121    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)]
122    #[doc = "Getter for the `referrerPolicy` field of this object."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
127    pub fn referrer_policy(this: &HtmlIFrameElement) -> ::alloc::string::String;
128    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)]
129    #[doc = "Setter for the `referrerPolicy` field of this object."]
130    #[doc = ""]
131    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
134    pub fn set_referrer_policy(this: &HtmlIFrameElement, value: &str);
135    #[cfg(feature = "Document")]
136    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentDocument)]
137    #[doc = "Getter for the `contentDocument` field of this object."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"]
142    pub fn content_document(this: &HtmlIFrameElement) -> Option<Document>;
143    #[cfg(feature = "Window")]
144    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentWindow)]
145    #[doc = "Getter for the `contentWindow` field of this object."]
146    #[doc = ""]
147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow)"]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`, `Window`*"]
150    pub fn content_window(this: &HtmlIFrameElement) -> Option<Window>;
151    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = align)]
152    #[doc = "Getter for the `align` field of this object."]
153    #[doc = ""]
154    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"]
155    #[doc = ""]
156    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
157    pub fn align(this: &HtmlIFrameElement) -> ::alloc::string::String;
158    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = align)]
159    #[doc = "Setter for the `align` field of this object."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
164    pub fn set_align(this: &HtmlIFrameElement, value: &str);
165    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = scrolling)]
166    #[doc = "Getter for the `scrolling` field of this object."]
167    #[doc = ""]
168    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"]
169    #[doc = ""]
170    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
171    pub fn scrolling(this: &HtmlIFrameElement) -> ::alloc::string::String;
172    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = scrolling)]
173    #[doc = "Setter for the `scrolling` field of this object."]
174    #[doc = ""]
175    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"]
176    #[doc = ""]
177    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
178    pub fn set_scrolling(this: &HtmlIFrameElement, value: &str);
179    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = frameBorder)]
180    #[doc = "Getter for the `frameBorder` field of this object."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
185    pub fn frame_border(this: &HtmlIFrameElement) -> ::alloc::string::String;
186    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = frameBorder)]
187    #[doc = "Setter for the `frameBorder` field of this object."]
188    #[doc = ""]
189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"]
190    #[doc = ""]
191    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
192    pub fn set_frame_border(this: &HtmlIFrameElement, value: &str);
193    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = longDesc)]
194    #[doc = "Getter for the `longDesc` field of this object."]
195    #[doc = ""]
196    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"]
197    #[doc = ""]
198    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
199    pub fn long_desc(this: &HtmlIFrameElement) -> ::alloc::string::String;
200    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = longDesc)]
201    #[doc = "Setter for the `longDesc` field of this object."]
202    #[doc = ""]
203    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
206    pub fn set_long_desc(this: &HtmlIFrameElement, value: &str);
207    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginHeight)]
208    #[doc = "Getter for the `marginHeight` field of this object."]
209    #[doc = ""]
210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"]
211    #[doc = ""]
212    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
213    pub fn margin_height(this: &HtmlIFrameElement) -> ::alloc::string::String;
214    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginHeight)]
215    #[doc = "Setter for the `marginHeight` field of this object."]
216    #[doc = ""]
217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
220    pub fn set_margin_height(this: &HtmlIFrameElement, value: &str);
221    # [wasm_bindgen (structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginWidth)]
222    #[doc = "Getter for the `marginWidth` field of this object."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
227    pub fn margin_width(this: &HtmlIFrameElement) -> ::alloc::string::String;
228    # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginWidth)]
229    #[doc = "Setter for the `marginWidth` field of this object."]
230    #[doc = ""]
231    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"]
232    #[doc = ""]
233    #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"]
234    pub fn set_margin_width(this: &HtmlIFrameElement, value: &str);
235    #[cfg(feature = "Document")]
236    # [wasm_bindgen (method , structural , js_class = "HTMLIFrameElement" , js_name = getSVGDocument)]
237    #[doc = "The `getSVGDocument()` method."]
238    #[doc = ""]
239    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/getSVGDocument)"]
240    #[doc = ""]
241    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"]
242    pub fn get_svg_document(this: &HtmlIFrameElement) -> Option<Document>;
243}