web_sys/features/
gen_DomPoint.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "DomPointReadOnly",
9 extends = "::js_sys::Object",
10 js_name = "DOMPoint",
11 typescript_type = "DOMPoint"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `DomPoint` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
19 pub type DomPoint;
20 #[wasm_bindgen(method, getter, js_class = "DOMPoint", js_name = "x")]
21 #[doc = "Getter for the `x` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
26 pub fn x(this: &DomPoint) -> f64;
27 #[wasm_bindgen(method, setter, js_class = "DOMPoint", js_name = "x")]
28 #[doc = "Setter for the `x` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
33 pub fn set_x(this: &DomPoint, value: f64);
34 #[wasm_bindgen(method, getter, js_class = "DOMPoint", js_name = "y")]
35 #[doc = "Getter for the `y` field of this object."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
40 pub fn y(this: &DomPoint) -> f64;
41 #[wasm_bindgen(method, setter, js_class = "DOMPoint", js_name = "y")]
42 #[doc = "Setter for the `y` field of this object."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
47 pub fn set_y(this: &DomPoint, value: f64);
48 #[wasm_bindgen(method, getter, js_class = "DOMPoint", js_name = "z")]
49 #[doc = "Getter for the `z` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
54 pub fn z(this: &DomPoint) -> f64;
55 #[wasm_bindgen(method, setter, js_class = "DOMPoint", js_name = "z")]
56 #[doc = "Setter for the `z` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
61 pub fn set_z(this: &DomPoint, value: f64);
62 #[wasm_bindgen(method, getter, js_class = "DOMPoint", js_name = "w")]
63 #[doc = "Getter for the `w` field of this object."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
68 pub fn w(this: &DomPoint) -> f64;
69 #[wasm_bindgen(method, setter, js_class = "DOMPoint", js_name = "w")]
70 #[doc = "Setter for the `w` field of this object."]
71 #[doc = ""]
72 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
75 pub fn set_w(this: &DomPoint, value: f64);
76 #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")]
77 #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
82 pub fn new() -> Result<DomPoint, JsValue>;
83 #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")]
84 #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."]
85 #[doc = ""]
86 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"]
87 #[doc = ""]
88 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
89 pub fn new_with_x(x: f64) -> Result<DomPoint, JsValue>;
90 #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")]
91 #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
96 pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomPoint, JsValue>;
97 #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")]
98 #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
103 pub fn new_with_x_and_y_and_z(x: f64, y: f64, z: f64) -> Result<DomPoint, JsValue>;
104 #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")]
105 #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."]
106 #[doc = ""]
107 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
110 pub fn new_with_x_and_y_and_z_and_w(
111 x: f64,
112 y: f64,
113 z: f64,
114 w: f64,
115 ) -> Result<DomPoint, JsValue>;
116 #[wasm_bindgen(
117 static_method_of = "DomPoint",
118 js_class = "DOMPoint",
119 js_name = "fromPoint"
120 )]
121 #[doc = "The `fromPoint()` method."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint_static)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"]
126 pub fn from_point() -> DomPoint;
127 #[cfg(feature = "DomPointInit")]
128 #[wasm_bindgen(
129 static_method_of = "DomPoint",
130 js_class = "DOMPoint",
131 js_name = "fromPoint"
132 )]
133 #[doc = "The `fromPoint()` method."]
134 #[doc = ""]
135 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint_static)"]
136 #[doc = ""]
137 #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`*"]
138 pub fn from_point_with_other(other: &DomPointInit) -> DomPoint;
139}