maxcountryman_web_sys/features/
gen_HtmlObjectElement.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 = HTMLObjectElement , typescript_type = "HTMLObjectElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlObjectElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
13    pub type HtmlObjectElement;
14    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = data)]
15    #[doc = "Getter for the `data` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
20    pub fn data(this: &HtmlObjectElement) -> String;
21    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = data)]
22    #[doc = "Setter for the `data` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
27    pub fn set_data(this: &HtmlObjectElement, value: &str);
28    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = type)]
29    #[doc = "Getter for the `type` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
34    pub fn type_(this: &HtmlObjectElement) -> String;
35    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = type)]
36    #[doc = "Setter for the `type` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
41    pub fn set_type(this: &HtmlObjectElement, value: &str);
42    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)]
43    #[doc = "Getter for the `typeMustMatch` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
48    pub fn type_must_match(this: &HtmlObjectElement) -> bool;
49    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = typeMustMatch)]
50    #[doc = "Setter for the `typeMustMatch` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
55    pub fn set_type_must_match(this: &HtmlObjectElement, value: bool);
56    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = name)]
57    #[doc = "Getter for the `name` field of this object."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
62    pub fn name(this: &HtmlObjectElement) -> String;
63    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = name)]
64    #[doc = "Setter for the `name` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
69    pub fn set_name(this: &HtmlObjectElement, value: &str);
70    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = useMap)]
71    #[doc = "Getter for the `useMap` field of this object."]
72    #[doc = ""]
73    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
76    pub fn use_map(this: &HtmlObjectElement) -> String;
77    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = useMap)]
78    #[doc = "Setter for the `useMap` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
83    pub fn set_use_map(this: &HtmlObjectElement, value: &str);
84    #[cfg(feature = "HtmlFormElement")]
85    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = form)]
86    #[doc = "Getter for the `form` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/form)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlObjectElement`*"]
91    pub fn form(this: &HtmlObjectElement) -> Option<HtmlFormElement>;
92    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , 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/HTMLObjectElement/width)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
98    pub fn width(this: &HtmlObjectElement) -> String;
99    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , 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/HTMLObjectElement/width)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
105    pub fn set_width(this: &HtmlObjectElement, value: &str);
106    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , 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/HTMLObjectElement/height)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
112    pub fn height(this: &HtmlObjectElement) -> String;
113    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , 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/HTMLObjectElement/height)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
119    pub fn set_height(this: &HtmlObjectElement, value: &str);
120    #[cfg(feature = "Document")]
121    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentDocument)]
122    #[doc = "Getter for the `contentDocument` field of this object."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentDocument)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"]
127    pub fn content_document(this: &HtmlObjectElement) -> Option<Document>;
128    #[cfg(feature = "Window")]
129    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentWindow)]
130    #[doc = "Getter for the `contentWindow` field of this object."]
131    #[doc = ""]
132    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentWindow)"]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `Window`*"]
135    pub fn content_window(this: &HtmlObjectElement) -> Option<Window>;
136    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = willValidate)]
137    #[doc = "Getter for the `willValidate` field of this object."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
142    pub fn will_validate(this: &HtmlObjectElement) -> bool;
143    #[cfg(feature = "ValidityState")]
144    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = validity)]
145    #[doc = "Getter for the `validity` field of this object."]
146    #[doc = ""]
147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity)"]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `ValidityState`*"]
150    pub fn validity(this: &HtmlObjectElement) -> ValidityState;
151    # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLObjectElement" , js_name = validationMessage)]
152    #[doc = "Getter for the `validationMessage` field of this object."]
153    #[doc = ""]
154    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage)"]
155    #[doc = ""]
156    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
157    pub fn validation_message(this: &HtmlObjectElement) -> Result<String, JsValue>;
158    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = align)]
159    #[doc = "Getter for the `align` field of this object."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
164    pub fn align(this: &HtmlObjectElement) -> String;
165    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = align)]
166    #[doc = "Setter for the `align` field of this object."]
167    #[doc = ""]
168    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"]
169    #[doc = ""]
170    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
171    pub fn set_align(this: &HtmlObjectElement, value: &str);
172    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = archive)]
173    #[doc = "Getter for the `archive` field of this object."]
174    #[doc = ""]
175    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"]
176    #[doc = ""]
177    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
178    pub fn archive(this: &HtmlObjectElement) -> String;
179    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = archive)]
180    #[doc = "Setter for the `archive` field of this object."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
185    pub fn set_archive(this: &HtmlObjectElement, value: &str);
186    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = code)]
187    #[doc = "Getter for the `code` field of this object."]
188    #[doc = ""]
189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"]
190    #[doc = ""]
191    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
192    pub fn code(this: &HtmlObjectElement) -> String;
193    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = code)]
194    #[doc = "Setter for the `code` field of this object."]
195    #[doc = ""]
196    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"]
197    #[doc = ""]
198    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
199    pub fn set_code(this: &HtmlObjectElement, value: &str);
200    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = declare)]
201    #[doc = "Getter for the `declare` field of this object."]
202    #[doc = ""]
203    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
206    pub fn declare(this: &HtmlObjectElement) -> bool;
207    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = declare)]
208    #[doc = "Setter for the `declare` field of this object."]
209    #[doc = ""]
210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"]
211    #[doc = ""]
212    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
213    pub fn set_declare(this: &HtmlObjectElement, value: bool);
214    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = hspace)]
215    #[doc = "Getter for the `hspace` field of this object."]
216    #[doc = ""]
217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
220    pub fn hspace(this: &HtmlObjectElement) -> u32;
221    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = hspace)]
222    #[doc = "Setter for the `hspace` field of this object."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
227    pub fn set_hspace(this: &HtmlObjectElement, value: u32);
228    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = standby)]
229    #[doc = "Getter for the `standby` field of this object."]
230    #[doc = ""]
231    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"]
232    #[doc = ""]
233    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
234    pub fn standby(this: &HtmlObjectElement) -> String;
235    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = standby)]
236    #[doc = "Setter for the `standby` field of this object."]
237    #[doc = ""]
238    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"]
239    #[doc = ""]
240    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
241    pub fn set_standby(this: &HtmlObjectElement, value: &str);
242    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = vspace)]
243    #[doc = "Getter for the `vspace` field of this object."]
244    #[doc = ""]
245    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"]
246    #[doc = ""]
247    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
248    pub fn vspace(this: &HtmlObjectElement) -> u32;
249    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = vspace)]
250    #[doc = "Setter for the `vspace` field of this object."]
251    #[doc = ""]
252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"]
253    #[doc = ""]
254    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
255    pub fn set_vspace(this: &HtmlObjectElement, value: u32);
256    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeBase)]
257    #[doc = "Getter for the `codeBase` field of this object."]
258    #[doc = ""]
259    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"]
260    #[doc = ""]
261    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
262    pub fn code_base(this: &HtmlObjectElement) -> String;
263    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeBase)]
264    #[doc = "Setter for the `codeBase` field of this object."]
265    #[doc = ""]
266    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"]
267    #[doc = ""]
268    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
269    pub fn set_code_base(this: &HtmlObjectElement, value: &str);
270    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeType)]
271    #[doc = "Getter for the `codeType` field of this object."]
272    #[doc = ""]
273    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"]
274    #[doc = ""]
275    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
276    pub fn code_type(this: &HtmlObjectElement) -> String;
277    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeType)]
278    #[doc = "Setter for the `codeType` field of this object."]
279    #[doc = ""]
280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"]
281    #[doc = ""]
282    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
283    pub fn set_code_type(this: &HtmlObjectElement, value: &str);
284    # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = border)]
285    #[doc = "Getter for the `border` field of this object."]
286    #[doc = ""]
287    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"]
288    #[doc = ""]
289    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
290    pub fn border(this: &HtmlObjectElement) -> String;
291    # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = border)]
292    #[doc = "Setter for the `border` field of this object."]
293    #[doc = ""]
294    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"]
295    #[doc = ""]
296    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
297    pub fn set_border(this: &HtmlObjectElement, value: &str);
298    # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = checkValidity)]
299    #[doc = "The `checkValidity()` method."]
300    #[doc = ""]
301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/checkValidity)"]
302    #[doc = ""]
303    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
304    pub fn check_validity(this: &HtmlObjectElement) -> bool;
305    #[cfg(feature = "Document")]
306    # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = getSVGDocument)]
307    #[doc = "The `getSVGDocument()` method."]
308    #[doc = ""]
309    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/getSVGDocument)"]
310    #[doc = ""]
311    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"]
312    pub fn get_svg_document(this: &HtmlObjectElement) -> Option<Document>;
313    # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = reportValidity)]
314    #[doc = "The `reportValidity()` method."]
315    #[doc = ""]
316    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/reportValidity)"]
317    #[doc = ""]
318    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
319    pub fn report_validity(this: &HtmlObjectElement) -> bool;
320    # [wasm_bindgen (method , structural , js_class = "HTMLObjectElement" , js_name = setCustomValidity)]
321    #[doc = "The `setCustomValidity()` method."]
322    #[doc = ""]
323    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity)"]
324    #[doc = ""]
325    #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"]
326    pub fn set_custom_validity(this: &HtmlObjectElement, error: &str);
327}