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