Skip to main content

web_sys/features/
gen_SvgStyleElement.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 = "SvgElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "SVGStyleElement",
14        typescript_type = "SVGStyleElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `SvgStyleElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
22    pub type SvgStyleElement;
23    #[wasm_bindgen(method, getter, js_class = "SVGStyleElement", js_name = "xmlspace")]
24    #[doc = "Getter for the `xmlspace` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
29    pub fn xmlspace(this: &SvgStyleElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "SVGStyleElement", js_name = "xmlspace")]
31    #[doc = "Setter for the `xmlspace` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
36    pub fn set_xmlspace(this: &SvgStyleElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "SVGStyleElement", 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/SVGStyleElement/type)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
43    pub fn type_(this: &SvgStyleElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "SVGStyleElement", 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/SVGStyleElement/type)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
50    pub fn set_type(this: &SvgStyleElement, value: &str);
51    #[wasm_bindgen(method, getter, js_class = "SVGStyleElement", js_name = "media")]
52    #[doc = "Getter for the `media` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
57    pub fn media(this: &SvgStyleElement) -> ::alloc::string::String;
58    #[wasm_bindgen(method, setter, js_class = "SVGStyleElement", js_name = "media")]
59    #[doc = "Setter for the `media` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
64    pub fn set_media(this: &SvgStyleElement, value: &str);
65    #[wasm_bindgen(method, getter, js_class = "SVGStyleElement", js_name = "title")]
66    #[doc = "Getter for the `title` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
71    pub fn title(this: &SvgStyleElement) -> ::alloc::string::String;
72    #[wasm_bindgen(method, setter, js_class = "SVGStyleElement", js_name = "title")]
73    #[doc = "Setter for the `title` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"]
78    pub fn set_title(this: &SvgStyleElement, value: &str);
79    #[cfg(feature = "StyleSheet")]
80    #[wasm_bindgen(method, getter, js_class = "SVGStyleElement", js_name = "sheet")]
81    #[doc = "Getter for the `sheet` field of this object."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/sheet)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `SvgStyleElement`*"]
86    pub fn sheet(this: &SvgStyleElement) -> Option<StyleSheet>;
87}