maxcountryman_web_sys/features/
gen_SvgStringList.rs

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