Skip to main content

web_sys/features/
gen_SvgTransformList.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 = "SVGTransformList",
10        typescript_type = "SVGTransformList"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `SvgTransformList` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"]
18    pub type SvgTransformList;
19    #[wasm_bindgen(
20        method,
21        getter,
22        js_class = "SVGTransformList",
23        js_name = "numberOfItems"
24    )]
25    #[doc = "Getter for the `numberOfItems` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/numberOfItems)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"]
30    pub fn number_of_items(this: &SvgTransformList) -> u32;
31    #[cfg(feature = "SvgTransform")]
32    #[wasm_bindgen(catch, method, js_class = "SVGTransformList", js_name = "appendItem")]
33    #[doc = "The `appendItem()` method."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/appendItem)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
38    pub fn append_item(
39        this: &SvgTransformList,
40        new_item: &SvgTransform,
41    ) -> Result<SvgTransform, JsValue>;
42    #[wasm_bindgen(catch, method, js_class = "SVGTransformList")]
43    #[doc = "The `clear()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/clear)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"]
48    pub fn clear(this: &SvgTransformList) -> Result<(), JsValue>;
49    #[cfg(feature = "SvgTransform")]
50    #[wasm_bindgen(catch, method, js_class = "SVGTransformList")]
51    #[doc = "The `consolidate()` method."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/consolidate)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
56    pub fn consolidate(this: &SvgTransformList) -> Result<Option<SvgTransform>, JsValue>;
57    #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))]
58    #[wasm_bindgen(
59        method,
60        js_class = "SVGTransformList",
61        js_name = "createSVGTransformFromMatrix"
62    )]
63    #[doc = "The `createSVGTransformFromMatrix()` method."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgTransformList`*"]
68    pub fn create_svg_transform_from_matrix(
69        this: &SvgTransformList,
70        matrix: &SvgMatrix,
71    ) -> SvgTransform;
72    #[cfg(feature = "SvgTransform")]
73    #[wasm_bindgen(catch, method, js_class = "SVGTransformList", js_name = "getItem")]
74    #[doc = "The `getItem()` method."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/getItem)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
79    pub fn get_item(this: &SvgTransformList, index: u32) -> Result<SvgTransform, JsValue>;
80    #[cfg(feature = "SvgTransform")]
81    #[wasm_bindgen(catch, method, js_class = "SVGTransformList")]
82    #[doc = "The `initialize()` method."]
83    #[doc = ""]
84    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/initialize)"]
85    #[doc = ""]
86    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
87    pub fn initialize(
88        this: &SvgTransformList,
89        new_item: &SvgTransform,
90    ) -> Result<SvgTransform, JsValue>;
91    #[cfg(feature = "SvgTransform")]
92    #[wasm_bindgen(
93        catch,
94        method,
95        js_class = "SVGTransformList",
96        js_name = "insertItemBefore"
97    )]
98    #[doc = "The `insertItemBefore()` method."]
99    #[doc = ""]
100    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/insertItemBefore)"]
101    #[doc = ""]
102    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
103    pub fn insert_item_before(
104        this: &SvgTransformList,
105        new_item: &SvgTransform,
106        index: u32,
107    ) -> Result<SvgTransform, JsValue>;
108    #[cfg(feature = "SvgTransform")]
109    #[wasm_bindgen(catch, method, js_class = "SVGTransformList", js_name = "removeItem")]
110    #[doc = "The `removeItem()` method."]
111    #[doc = ""]
112    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/removeItem)"]
113    #[doc = ""]
114    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
115    pub fn remove_item(this: &SvgTransformList, index: u32) -> Result<SvgTransform, JsValue>;
116    #[cfg(feature = "SvgTransform")]
117    #[wasm_bindgen(catch, method, js_class = "SVGTransformList", js_name = "replaceItem")]
118    #[doc = "The `replaceItem()` method."]
119    #[doc = ""]
120    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/replaceItem)"]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
123    pub fn replace_item(
124        this: &SvgTransformList,
125        new_item: &SvgTransform,
126        index: u32,
127    ) -> Result<SvgTransform, JsValue>;
128    #[cfg(feature = "SvgTransform")]
129    #[wasm_bindgen(catch, method, js_class = "SVGTransformList", indexing_getter)]
130    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
131    #[doc = ""]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"]
134    pub fn get(this: &SvgTransformList, index: u32) -> Result<SvgTransform, JsValue>;
135}