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 = PaintRequest , typescript_type = "PaintRequest")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `PaintRequest` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] 13 pub type PaintRequest; 14 #[cfg(feature = "DomRect")] 15 # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = clientRect)] 16 #[doc = "Getter for the `clientRect` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/clientRect)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `DomRect`, `PaintRequest`*"] client_rect(this: &PaintRequest) -> DomRect21 pub fn client_rect(this: &PaintRequest) -> DomRect; 22 # [wasm_bindgen (structural , method , getter , js_class = "PaintRequest" , js_name = reason)] 23 #[doc = "Getter for the `reason` field of this object."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/reason)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] reason(this: &PaintRequest) -> String28 pub fn reason(this: &PaintRequest) -> String; 29 } 30