Skip to main content

web_sys/features/
gen_PaintWorkletGlobalScope.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "WorkletGlobalScope",
9        extends = "::js_sys::Object",
10        js_name = "PaintWorkletGlobalScope",
11        typescript_type = "PaintWorkletGlobalScope"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `PaintWorkletGlobalScope` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"]
19    pub type PaintWorkletGlobalScope;
20    #[wasm_bindgen(
21        method,
22        js_class = "PaintWorkletGlobalScope",
23        js_name = "registerPaint"
24    )]
25    #[doc = "The `registerPaint()` method."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope/registerPaint)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"]
30    pub fn register_paint(
31        this: &PaintWorkletGlobalScope,
32        name: &str,
33        paint_ctor: &::js_sys::Function,
34    );
35}