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