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