Skip to main content

web_sys/features/
gen_HtmlEmbedElement.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 = "HTMLEmbedElement",
14        typescript_type = "HTMLEmbedElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlEmbedElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
22    pub type HtmlEmbedElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", 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/HTMLEmbedElement/src)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
29    pub fn src(this: &HtmlEmbedElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", 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/HTMLEmbedElement/src)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
36    pub fn set_src(this: &HtmlEmbedElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", 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/HTMLEmbedElement/type)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
43    pub fn type_(this: &HtmlEmbedElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", 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/HTMLEmbedElement/type)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
50    pub fn set_type(this: &HtmlEmbedElement, value: &str);
51    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", js_name = "width")]
52    #[doc = "Getter for the `width` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
57    pub fn width(this: &HtmlEmbedElement) -> ::alloc::string::String;
58    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", js_name = "width")]
59    #[doc = "Setter for the `width` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
64    pub fn set_width(this: &HtmlEmbedElement, value: &str);
65    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", js_name = "height")]
66    #[doc = "Getter for the `height` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
71    pub fn height(this: &HtmlEmbedElement) -> ::alloc::string::String;
72    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", js_name = "height")]
73    #[doc = "Setter for the `height` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
78    pub fn set_height(this: &HtmlEmbedElement, value: &str);
79    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", js_name = "align")]
80    #[doc = "Getter for the `align` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
85    pub fn align(this: &HtmlEmbedElement) -> ::alloc::string::String;
86    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", js_name = "align")]
87    #[doc = "Setter for the `align` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
92    pub fn set_align(this: &HtmlEmbedElement, value: &str);
93    #[wasm_bindgen(method, getter, js_class = "HTMLEmbedElement", js_name = "name")]
94    #[doc = "Getter for the `name` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
99    pub fn name(this: &HtmlEmbedElement) -> ::alloc::string::String;
100    #[wasm_bindgen(method, setter, js_class = "HTMLEmbedElement", js_name = "name")]
101    #[doc = "Setter for the `name` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"]
106    pub fn set_name(this: &HtmlEmbedElement, value: &str);
107    #[cfg(feature = "Document")]
108    #[wasm_bindgen(method, js_class = "HTMLEmbedElement", js_name = "getSVGDocument")]
109    #[doc = "The `getSVGDocument()` method."]
110    #[doc = ""]
111    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/getSVGDocument)"]
112    #[doc = ""]
113    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlEmbedElement`*"]
114    pub fn get_svg_document(this: &HtmlEmbedElement) -> Option<Document>;
115}