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