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