web_sys/features/
gen_SvgStringList.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "SVGStringList",
10 typescript_type = "SVGStringList"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `SvgStringList` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
18 pub type SvgStringList;
19 #[wasm_bindgen(method, getter, js_class = "SVGStringList", js_name = "length")]
20 #[doc = "Getter for the `length` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/length)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
25 pub fn length(this: &SvgStringList) -> u32;
26 #[wasm_bindgen(method, getter, js_class = "SVGStringList", js_name = "numberOfItems")]
27 #[doc = "Getter for the `numberOfItems` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/numberOfItems)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
32 pub fn number_of_items(this: &SvgStringList) -> u32;
33 #[wasm_bindgen(catch, method, js_class = "SVGStringList", js_name = "appendItem")]
34 #[doc = "The `appendItem()` method."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/appendItem)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
39 pub fn append_item(
40 this: &SvgStringList,
41 new_item: &str,
42 ) -> Result<::alloc::string::String, JsValue>;
43 #[wasm_bindgen(method, js_class = "SVGStringList")]
44 #[doc = "The `clear()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/clear)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
49 pub fn clear(this: &SvgStringList);
50 #[wasm_bindgen(catch, method, js_class = "SVGStringList", js_name = "getItem")]
51 #[doc = "The `getItem()` method."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/getItem)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
56 pub fn get_item(this: &SvgStringList, index: u32) -> Result<::alloc::string::String, JsValue>;
57 #[wasm_bindgen(catch, method, js_class = "SVGStringList")]
58 #[doc = "The `initialize()` method."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/initialize)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
63 pub fn initialize(
64 this: &SvgStringList,
65 new_item: &str,
66 ) -> Result<::alloc::string::String, JsValue>;
67 #[wasm_bindgen(
68 catch,
69 method,
70 js_class = "SVGStringList",
71 js_name = "insertItemBefore"
72 )]
73 #[doc = "The `insertItemBefore()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/insertItemBefore)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
78 pub fn insert_item_before(
79 this: &SvgStringList,
80 new_item: &str,
81 index: u32,
82 ) -> Result<::alloc::string::String, JsValue>;
83 #[wasm_bindgen(catch, method, js_class = "SVGStringList", js_name = "removeItem")]
84 #[doc = "The `removeItem()` method."]
85 #[doc = ""]
86 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/removeItem)"]
87 #[doc = ""]
88 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
89 pub fn remove_item(
90 this: &SvgStringList,
91 index: u32,
92 ) -> Result<::alloc::string::String, JsValue>;
93 #[wasm_bindgen(catch, method, js_class = "SVGStringList", js_name = "replaceItem")]
94 #[doc = "The `replaceItem()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/replaceItem)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
99 pub fn replace_item(
100 this: &SvgStringList,
101 new_item: &str,
102 index: u32,
103 ) -> Result<::alloc::string::String, JsValue>;
104 #[wasm_bindgen(method, js_class = "SVGStringList", indexing_getter)]
105 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
106 #[doc = ""]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"]
109 pub fn get(this: &SvgStringList, index: u32) -> Option<::alloc::string::String>;
110}