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 = DOMRectReadOnly , typescript_type = "DOMRectReadOnly")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `DomRectReadOnly` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] 13 pub type DomRectReadOnly; 14 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = x)] 15 #[doc = "Getter for the `x` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/x)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] x(this: &DomRectReadOnly) -> f6420 pub fn x(this: &DomRectReadOnly) -> f64; 21 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = y)] 22 #[doc = "Getter for the `y` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] y(this: &DomRectReadOnly) -> f6427 pub fn y(this: &DomRectReadOnly) -> f64; 28 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = width)] 29 #[doc = "Getter for the `width` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] width(this: &DomRectReadOnly) -> f6434 pub fn width(this: &DomRectReadOnly) -> f64; 35 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = height)] 36 #[doc = "Getter for the `height` field of this object."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] height(this: &DomRectReadOnly) -> f6441 pub fn height(this: &DomRectReadOnly) -> f64; 42 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = top)] 43 #[doc = "Getter for the `top` field of this object."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] top(this: &DomRectReadOnly) -> f6448 pub fn top(this: &DomRectReadOnly) -> f64; 49 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = right)] 50 #[doc = "Getter for the `right` field of this object."] 51 #[doc = ""] 52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right)"] 53 #[doc = ""] 54 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] right(this: &DomRectReadOnly) -> f6455 pub fn right(this: &DomRectReadOnly) -> f64; 56 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = bottom)] 57 #[doc = "Getter for the `bottom` field of this object."] 58 #[doc = ""] 59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom)"] 60 #[doc = ""] 61 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] bottom(this: &DomRectReadOnly) -> f6462 pub fn bottom(this: &DomRectReadOnly) -> f64; 63 # [wasm_bindgen (structural , method , getter , js_class = "DOMRectReadOnly" , js_name = left)] 64 #[doc = "Getter for the `left` field of this object."] 65 #[doc = ""] 66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left)"] 67 #[doc = ""] 68 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] left(this: &DomRectReadOnly) -> f6469 pub fn left(this: &DomRectReadOnly) -> f64; 70 #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] 71 #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] 72 #[doc = ""] 73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] 74 #[doc = ""] 75 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] new() -> Result<DomRectReadOnly, JsValue>76 pub fn new() -> Result<DomRectReadOnly, JsValue>; 77 #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] 78 #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] 79 #[doc = ""] 80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] 81 #[doc = ""] 82 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] new_with_x(x: f64) -> Result<DomRectReadOnly, JsValue>83 pub fn new_with_x(x: f64) -> Result<DomRectReadOnly, JsValue>; 84 #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] 85 #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] 86 #[doc = ""] 87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] 88 #[doc = ""] 89 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] new_with_x_and_y(x: f64, y: f64) -> Result<DomRectReadOnly, JsValue>90 pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomRectReadOnly, JsValue>; 91 #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] 92 #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] 93 #[doc = ""] 94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] 95 #[doc = ""] 96 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] new_with_x_and_y_and_width( x: f64, y: f64, width: f64, ) -> Result<DomRectReadOnly, JsValue>97 pub fn new_with_x_and_y_and_width( 98 x: f64, 99 y: f64, 100 width: f64, 101 ) -> Result<DomRectReadOnly, JsValue>; 102 #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] 103 #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] 104 #[doc = ""] 105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] 106 #[doc = ""] 107 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] new_with_x_and_y_and_width_and_height( x: f64, y: f64, width: f64, height: f64, ) -> Result<DomRectReadOnly, JsValue>108 pub fn new_with_x_and_y_and_width_and_height( 109 x: f64, 110 y: f64, 111 width: f64, 112 height: f64, 113 ) -> Result<DomRectReadOnly, JsValue>; 114 # [wasm_bindgen (method , structural , js_class = "DOMRectReadOnly" , js_name = toJSON)] 115 #[doc = "The `toJSON()` method."] 116 #[doc = ""] 117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/toJSON)"] 118 #[doc = ""] 119 #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] to_json(this: &DomRectReadOnly) -> ::js_sys::Object120 pub fn to_json(this: &DomRectReadOnly) -> ::js_sys::Object; 121 } 122