web_sys/features/
gen_DomQuad.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 = "DOMQuad",
10 typescript_type = "DOMQuad"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `DomQuad` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"]
18 pub type DomQuad;
19 #[cfg(feature = "DomPoint")]
20 #[wasm_bindgen(method, getter, js_class = "DOMQuad", js_name = "p1")]
21 #[doc = "Getter for the `p1` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p1)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"]
26 pub fn p1(this: &DomQuad) -> DomPoint;
27 #[cfg(feature = "DomPoint")]
28 #[wasm_bindgen(method, getter, js_class = "DOMQuad", js_name = "p2")]
29 #[doc = "Getter for the `p2` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p2)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"]
34 pub fn p2(this: &DomQuad) -> DomPoint;
35 #[cfg(feature = "DomPoint")]
36 #[wasm_bindgen(method, getter, js_class = "DOMQuad", js_name = "p3")]
37 #[doc = "Getter for the `p3` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p3)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"]
42 pub fn p3(this: &DomQuad) -> DomPoint;
43 #[cfg(feature = "DomPoint")]
44 #[wasm_bindgen(method, getter, js_class = "DOMQuad", js_name = "p4")]
45 #[doc = "Getter for the `p4` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p4)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"]
50 pub fn p4(this: &DomQuad) -> DomPoint;
51 #[cfg(feature = "DomRectReadOnly")]
52 #[wasm_bindgen(method, getter, js_class = "DOMQuad", js_name = "bounds")]
53 #[doc = "Getter for the `bounds` field of this object."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/bounds)"]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"]
58 pub fn bounds(this: &DomQuad) -> DomRectReadOnly;
59 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
60 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"]
65 pub fn new() -> Result<DomQuad, JsValue>;
66 #[cfg(feature = "DomPointInit")]
67 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
68 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"]
73 pub fn new_with_dom_point_init(p1: &DomPointInit) -> Result<DomQuad, JsValue>;
74 #[cfg(feature = "DomPointInit")]
75 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
76 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"]
81 pub fn new_with_dom_point_init_and_p2(
82 p1: &DomPointInit,
83 p2: &DomPointInit,
84 ) -> Result<DomQuad, JsValue>;
85 #[cfg(feature = "DomPointInit")]
86 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
87 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"]
92 pub fn new_with_dom_point_init_and_p2_and_p3(
93 p1: &DomPointInit,
94 p2: &DomPointInit,
95 p3: &DomPointInit,
96 ) -> Result<DomQuad, JsValue>;
97 #[cfg(feature = "DomPointInit")]
98 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
99 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"]
104 pub fn new_with_dom_point_init_and_p2_and_p3_and_p4(
105 p1: &DomPointInit,
106 p2: &DomPointInit,
107 p3: &DomPointInit,
108 p4: &DomPointInit,
109 ) -> Result<DomQuad, JsValue>;
110 #[cfg(feature = "DomRectReadOnly")]
111 #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")]
112 #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."]
113 #[doc = ""]
114 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"]
115 #[doc = ""]
116 #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"]
117 pub fn new_with_rect(rect: &DomRectReadOnly) -> Result<DomQuad, JsValue>;
118 #[cfg(feature = "DomRectReadOnly")]
119 #[wasm_bindgen(method, js_class = "DOMQuad", js_name = "getBounds")]
120 #[doc = "The `getBounds()` method."]
121 #[doc = ""]
122 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/getBounds)"]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"]
125 pub fn get_bounds(this: &DomQuad) -> DomRectReadOnly;
126 #[cfg(feature = "DomQuadJson")]
127 #[wasm_bindgen(method, js_class = "DOMQuad", js_name = "toJSON")]
128 #[doc = "The `toJSON()` method."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/toJSON)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomQuadJson`*"]
133 pub fn to_json(this: &DomQuad) -> DomQuadJson;
134}