Skip to main content

web_sys/features/
gen_SvgPathSegList.rs

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