web_sys/features/
gen_SvgPathSeg.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = SVGPathSeg , typescript_type = "SVGPathSeg")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SvgPathSeg` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
14    pub type SvgPathSeg;
15    # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegType)]
16    #[doc = "Getter for the `pathSegType` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegType)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
21    pub fn path_seg_type(this: &SvgPathSeg) -> u16;
22    # [wasm_bindgen (structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegTypeAsLetter)]
23    #[doc = "Getter for the `pathSegTypeAsLetter` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegTypeAsLetter)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
28    pub fn path_seg_type_as_letter(this: &SvgPathSeg) -> ::alloc::string::String;
29}
30impl SvgPathSeg {
31    #[doc = "The `SVGPathSeg.PATHSEG_UNKNOWN` const."]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
34    pub const PATHSEG_UNKNOWN: u16 = 0i64 as u16;
35    #[doc = "The `SVGPathSeg.PATHSEG_CLOSEPATH` const."]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
38    pub const PATHSEG_CLOSEPATH: u16 = 1u64 as u16;
39    #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_ABS` const."]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
42    pub const PATHSEG_MOVETO_ABS: u16 = 2u64 as u16;
43    #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_REL` const."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
46    pub const PATHSEG_MOVETO_REL: u16 = 3u64 as u16;
47    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_ABS` const."]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
50    pub const PATHSEG_LINETO_ABS: u16 = 4u64 as u16;
51    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_REL` const."]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
54    pub const PATHSEG_LINETO_REL: u16 = 5u64 as u16;
55    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS` const."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
58    pub const PATHSEG_CURVETO_CUBIC_ABS: u16 = 6u64 as u16;
59    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL` const."]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
62    pub const PATHSEG_CURVETO_CUBIC_REL: u16 = 7u64 as u16;
63    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS` const."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
66    pub const PATHSEG_CURVETO_QUADRATIC_ABS: u16 = 8u64 as u16;
67    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL` const."]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
70    pub const PATHSEG_CURVETO_QUADRATIC_REL: u16 = 9u64 as u16;
71    #[doc = "The `SVGPathSeg.PATHSEG_ARC_ABS` const."]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
74    pub const PATHSEG_ARC_ABS: u16 = 10u64 as u16;
75    #[doc = "The `SVGPathSeg.PATHSEG_ARC_REL` const."]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
78    pub const PATHSEG_ARC_REL: u16 = 11u64 as u16;
79    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS` const."]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
82    pub const PATHSEG_LINETO_HORIZONTAL_ABS: u16 = 12u64 as u16;
83    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL` const."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
86    pub const PATHSEG_LINETO_HORIZONTAL_REL: u16 = 13u64 as u16;
87    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS` const."]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
90    pub const PATHSEG_LINETO_VERTICAL_ABS: u16 = 14u64 as u16;
91    #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL` const."]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
94    pub const PATHSEG_LINETO_VERTICAL_REL: u16 = 15u64 as u16;
95    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS` const."]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
98    pub const PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: u16 = 16u64 as u16;
99    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL` const."]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
102    pub const PATHSEG_CURVETO_CUBIC_SMOOTH_REL: u16 = 17u64 as u16;
103    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS` const."]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
106    pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: u16 = 18u64 as u16;
107    #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL` const."]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"]
110    pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: u16 = 19u64 as u16;
111}