maxcountryman_web_sys/features/
gen_CanvasPattern.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CanvasPattern , typescript_type = "CanvasPattern")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `CanvasPattern` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`*"]
13 pub type CanvasPattern;
14 #[cfg(feature = "SvgMatrix")]
15 # [wasm_bindgen (method , structural , js_class = "CanvasPattern" , js_name = setTransform)]
16 #[doc = "The `setTransform()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern/setTransform)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `SvgMatrix`*"]
21 pub fn set_transform(this: &CanvasPattern, matrix: &SvgMatrix);
22}