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