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