web_sys/features/
gen_SvgMarkerElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMarkerElement , typescript_type = "SVGMarkerElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgMarkerElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
14 pub type SvgMarkerElement;
15 #[cfg(feature = "SvgAnimatedLength")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refX)]
17 #[doc = "Getter for the `refX` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refX)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
22 pub fn ref_x(this: &SvgMarkerElement) -> SvgAnimatedLength;
23 #[cfg(feature = "SvgAnimatedLength")]
24 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = refY)]
25 #[doc = "Getter for the `refY` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refY)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
30 pub fn ref_y(this: &SvgMarkerElement) -> SvgAnimatedLength;
31 #[cfg(feature = "SvgAnimatedEnumeration")]
32 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerUnits)]
33 #[doc = "Getter for the `markerUnits` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerUnits)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"]
38 pub fn marker_units(this: &SvgMarkerElement) -> SvgAnimatedEnumeration;
39 #[cfg(feature = "SvgAnimatedLength")]
40 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerWidth)]
41 #[doc = "Getter for the `markerWidth` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerWidth)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
46 pub fn marker_width(this: &SvgMarkerElement) -> SvgAnimatedLength;
47 #[cfg(feature = "SvgAnimatedLength")]
48 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerHeight)]
49 #[doc = "Getter for the `markerHeight` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerHeight)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
54 pub fn marker_height(this: &SvgMarkerElement) -> SvgAnimatedLength;
55 #[cfg(feature = "SvgAnimatedEnumeration")]
56 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientType)]
57 #[doc = "Getter for the `orientType` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientType)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"]
62 pub fn orient_type(this: &SvgMarkerElement) -> SvgAnimatedEnumeration;
63 #[cfg(feature = "SvgAnimatedAngle")]
64 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientAngle)]
65 #[doc = "Getter for the `orientAngle` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientAngle)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`, `SvgMarkerElement`*"]
70 pub fn orient_angle(this: &SvgMarkerElement) -> SvgAnimatedAngle;
71 #[cfg(feature = "SvgAnimatedRect")]
72 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = viewBox)]
73 #[doc = "Getter for the `viewBox` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgMarkerElement`*"]
78 pub fn view_box(this: &SvgMarkerElement) -> SvgAnimatedRect;
79 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
80 # [wasm_bindgen (structural , method , getter , js_class = "SVGMarkerElement" , js_name = preserveAspectRatio)]
81 #[doc = "Getter for the `preserveAspectRatio` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/preserveAspectRatio)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgMarkerElement`*"]
86 pub fn preserve_aspect_ratio(this: &SvgMarkerElement) -> SvgAnimatedPreserveAspectRatio;
87 #[cfg(feature = "SvgAngle")]
88 # [wasm_bindgen (catch , method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAngle)]
89 #[doc = "The `setOrientToAngle()` method."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAngle)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgMarkerElement`*"]
94 pub fn set_orient_to_angle(this: &SvgMarkerElement, angle: &SvgAngle) -> Result<(), JsValue>;
95 # [wasm_bindgen (method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAuto)]
96 #[doc = "The `setOrientToAuto()` method."]
97 #[doc = ""]
98 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAuto)"]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
101 pub fn set_orient_to_auto(this: &SvgMarkerElement);
102}
103impl SvgMarkerElement {
104 #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN` const."]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
107 pub const SVG_MARKERUNITS_UNKNOWN: u16 = 0i64 as u16;
108 #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE` const."]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
111 pub const SVG_MARKERUNITS_USERSPACEONUSE: u16 = 1u64 as u16;
112 #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH` const."]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
115 pub const SVG_MARKERUNITS_STROKEWIDTH: u16 = 2u64 as u16;
116 #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN` const."]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
119 pub const SVG_MARKER_ORIENT_UNKNOWN: u16 = 0i64 as u16;
120 #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_AUTO` const."]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
123 pub const SVG_MARKER_ORIENT_AUTO: u16 = 1u64 as u16;
124 #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE` const."]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
127 pub const SVG_MARKER_ORIENT_ANGLE: u16 = 2u64 as u16;
128}