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