Skip to main content

web_sys/features/
gen_ImageCaptureErrorEvent.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 = "Event",
9        extends = "::js_sys::Object",
10        js_name = "ImageCaptureErrorEvent",
11        typescript_type = "ImageCaptureErrorEvent"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `ImageCaptureErrorEvent` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"]
19    pub type ImageCaptureErrorEvent;
20    #[cfg(feature = "ImageCaptureError")]
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "ImageCaptureErrorEvent",
25        js_name = "imageCaptureError"
26    )]
27    #[doc = "Getter for the `imageCaptureError` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/imageCaptureError)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEvent`*"]
32    pub fn image_capture_error(this: &ImageCaptureErrorEvent) -> Option<ImageCaptureError>;
33    #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")]
34    #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"]
39    pub fn new(type_: &str) -> Result<ImageCaptureErrorEvent, JsValue>;
40    #[cfg(feature = "ImageCaptureErrorEventInit")]
41    #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")]
42    #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`, `ImageCaptureErrorEventInit`*"]
47    pub fn new_with_image_capture_error_init_dict(
48        type_: &str,
49        image_capture_error_init_dict: &ImageCaptureErrorEventInit,
50    ) -> Result<ImageCaptureErrorEvent, JsValue>;
51}