web_sys/features/
gen_DomPoint.rs

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