maxcountryman_web_sys/features/
gen_SvgPointList.rs

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