maxcountryman_web_sys/features/
gen_SvgPathSegList.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 = SVGPathSegList , typescript_type = "SVGPathSegList")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `SvgPathSegList` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"]
13    pub type SvgPathSegList;
14    # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSegList" , 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/SVGPathSegList/numberOfItems)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"]
20    pub fn number_of_items(this: &SvgPathSegList) -> u32;
21    #[cfg(feature = "SvgPathSeg")]
22    # [wasm_bindgen (catch , method , structural , js_class = "SVGPathSegList" , js_name = getItem)]
23    #[doc = "The `getItem()` method."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/getItem)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"]
28    pub fn get_item(this: &SvgPathSegList, index: u32) -> Result<SvgPathSeg, JsValue>;
29    #[cfg(feature = "SvgPathSeg")]
30    #[wasm_bindgen(
31        catch,
32        method,
33        structural,
34        js_class = "SVGPathSegList",
35        indexing_getter
36    )]
37    #[doc = "Indexing getter."]
38    #[doc = ""]
39    #[doc = ""]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"]
42    pub fn get(this: &SvgPathSegList, index: u32) -> Result<SvgPathSeg, JsValue>;
43}