maxcountryman_web_sys/features/
gen_DomPoint.rs

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