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