Skip to main content

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