web_sys/features/
gen_SvgLengthList.rs

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