maxcountryman_web_sys/features/
gen_HtmlIFrameElement.rs

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