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