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