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