1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSourceElement , typescript_type = "HTMLSourceElement")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `HtmlSourceElement` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
13     pub type HtmlSourceElement;
14     # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , 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/HTMLSourceElement/src)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
src(this: &HtmlSourceElement) -> String20     pub fn src(this: &HtmlSourceElement) -> String;
21     # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , 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/HTMLSourceElement/src)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
set_src(this: &HtmlSourceElement, value: &str)27     pub fn set_src(this: &HtmlSourceElement, value: &str);
28     # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , 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/HTMLSourceElement/type)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
type_(this: &HtmlSourceElement) -> String34     pub fn type_(this: &HtmlSourceElement) -> String;
35     # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , 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/HTMLSourceElement/type)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
set_type(this: &HtmlSourceElement, value: &str)41     pub fn set_type(this: &HtmlSourceElement, value: &str);
42     # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = srcset)]
43     #[doc = "Getter for the `srcset` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
srcset(this: &HtmlSourceElement) -> String48     pub fn srcset(this: &HtmlSourceElement) -> String;
49     # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = srcset)]
50     #[doc = "Setter for the `srcset` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
set_srcset(this: &HtmlSourceElement, value: &str)55     pub fn set_srcset(this: &HtmlSourceElement, value: &str);
56     # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = sizes)]
57     #[doc = "Getter for the `sizes` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
sizes(this: &HtmlSourceElement) -> String62     pub fn sizes(this: &HtmlSourceElement) -> String;
63     # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = sizes)]
64     #[doc = "Setter for the `sizes` field of this object."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
set_sizes(this: &HtmlSourceElement, value: &str)69     pub fn set_sizes(this: &HtmlSourceElement, value: &str);
70     # [wasm_bindgen (structural , method , getter , js_class = "HTMLSourceElement" , js_name = media)]
71     #[doc = "Getter for the `media` field of this object."]
72     #[doc = ""]
73     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"]
74     #[doc = ""]
75     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
media(this: &HtmlSourceElement) -> String76     pub fn media(this: &HtmlSourceElement) -> String;
77     # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = media)]
78     #[doc = "Setter for the `media` field of this object."]
79     #[doc = ""]
80     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"]
81     #[doc = ""]
82     #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"]
set_media(this: &HtmlSourceElement, value: &str)83     pub fn set_media(this: &HtmlSourceElement, value: &str);
84 }
85