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