1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmap , typescript_type = "ImageBitmap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub type ImageBitmap; # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn width(this: &ImageBitmap) -> u32; # [wasm_bindgen (structural , method , getter , js_class = "ImageBitmap" , js_name = height)] #[doc = "Getter for the `height` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn height(this: &ImageBitmap) -> u32; # [wasm_bindgen (method , structural , js_class = "ImageBitmap" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] pub fn close(this: &ImageBitmap); #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn find_optimal_format(this: &ImageBitmap) -> Result<ImageBitmapFormat, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat)] #[doc = "The `findOptimalFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn find_optimal_format_with_a_possible_formats( this: &ImageBitmap, a_possible_formats: &::wasm_bindgen::JsValue, ) -> Result<ImageBitmapFormat, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn map_data_into_with_buffer_source( this: &ImageBitmap, a_format: ImageBitmapFormat, a_buffer: &::js_sys::Object, a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto)] #[doc = "The `mapDataInto()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn map_data_into_with_u8_array( this: &ImageBitmap, a_format: ImageBitmapFormat, a_buffer: &mut [u8], a_offset: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageBitmapFormat")] # [wasm_bindgen (catch , method , structural , js_class = "ImageBitmap" , js_name = mappedDataLength)] #[doc = "The `mappedDataLength()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mappedDataLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] pub fn mapped_data_length( this: &ImageBitmap, a_format: ImageBitmapFormat, ) -> Result<i32, JsValue>; }