web_sys/features/
gen_SvgaElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "SvgGraphicsElement",
9 extends = "SvgElement",
10 extends = "Element",
11 extends = "Node",
12 extends = "EventTarget",
13 extends = "::js_sys::Object",
14 js_name = "SVGAElement",
15 typescript_type = "SVGAElement"
16 )]
17 #[derive(Debug, Clone, PartialEq, Eq)]
18 #[doc = "The `SvgaElement` class."]
19 #[doc = ""]
20 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement)"]
21 #[doc = ""]
22 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
23 pub type SvgaElement;
24 #[cfg(feature = "SvgAnimatedString")]
25 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "target")]
26 #[doc = "Getter for the `target` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/target)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"]
31 pub fn target(this: &SvgaElement) -> SvgAnimatedString;
32 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "download")]
33 #[doc = "Getter for the `download` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
38 pub fn download(this: &SvgaElement) -> ::alloc::string::String;
39 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "download")]
40 #[doc = "Setter for the `download` field of this object."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
45 pub fn set_download(this: &SvgaElement, value: &str);
46 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "ping")]
47 #[doc = "Getter for the `ping` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
52 pub fn ping(this: &SvgaElement) -> ::alloc::string::String;
53 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "ping")]
54 #[doc = "Setter for the `ping` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
59 pub fn set_ping(this: &SvgaElement, value: &str);
60 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "rel")]
61 #[doc = "Getter for the `rel` field of this object."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
66 pub fn rel(this: &SvgaElement) -> ::alloc::string::String;
67 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "rel")]
68 #[doc = "Setter for the `rel` field of this object."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
73 pub fn set_rel(this: &SvgaElement, value: &str);
74 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "referrerPolicy")]
75 #[doc = "Getter for the `referrerPolicy` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
80 pub fn referrer_policy(this: &SvgaElement) -> ::alloc::string::String;
81 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "referrerPolicy")]
82 #[doc = "Setter for the `referrerPolicy` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
87 pub fn set_referrer_policy(this: &SvgaElement, value: &str);
88 #[cfg(feature = "DomTokenList")]
89 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "relList")]
90 #[doc = "Getter for the `relList` field of this object."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/relList)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `SvgaElement`*"]
95 pub fn rel_list(this: &SvgaElement) -> DomTokenList;
96 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "hreflang")]
97 #[doc = "Getter for the `hreflang` field of this object."]
98 #[doc = ""]
99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
102 pub fn hreflang(this: &SvgaElement) -> ::alloc::string::String;
103 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "hreflang")]
104 #[doc = "Setter for the `hreflang` field of this object."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
109 pub fn set_hreflang(this: &SvgaElement, value: &str);
110 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "type")]
111 #[doc = "Getter for the `type` field of this object."]
112 #[doc = ""]
113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
116 pub fn type_(this: &SvgaElement) -> ::alloc::string::String;
117 #[wasm_bindgen(method, setter, js_class = "SVGAElement", js_name = "type")]
118 #[doc = "Setter for the `type` field of this object."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
123 pub fn set_type(this: &SvgaElement, value: &str);
124 #[wasm_bindgen(catch, method, getter, js_class = "SVGAElement", js_name = "text")]
125 #[doc = "Getter for the `text` field of this object."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
130 pub fn text(this: &SvgaElement) -> Result<::alloc::string::String, JsValue>;
131 #[wasm_bindgen(catch, method, setter, js_class = "SVGAElement", js_name = "text")]
132 #[doc = "Setter for the `text` field of this object."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"]
137 pub fn set_text(this: &SvgaElement, value: &str) -> Result<(), JsValue>;
138 #[cfg(feature = "SvgAnimatedString")]
139 #[wasm_bindgen(method, getter, js_class = "SVGAElement", js_name = "href")]
140 #[doc = "Getter for the `href` field of this object."]
141 #[doc = ""]
142 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/href)"]
143 #[doc = ""]
144 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"]
145 pub fn href(this: &SvgaElement) -> SvgAnimatedString;
146}