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