Skip to main content

web_sys/features/
gen_CanvasPattern.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 = "::js_sys::Object",
9        js_name = "CanvasPattern",
10        typescript_type = "CanvasPattern"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `CanvasPattern` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`*"]
18    pub type CanvasPattern;
19    #[cfg(feature = "SvgMatrix")]
20    #[wasm_bindgen(method, js_class = "CanvasPattern", js_name = "setTransform")]
21    #[doc = "The `setTransform()` method."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern/setTransform)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `SvgMatrix`*"]
26    pub fn set_transform(this: &CanvasPattern, matrix: &SvgMatrix);
27}