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