maxcountryman_web_sys/features/
gen_DeviceLightEvent.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = DeviceLightEvent , typescript_type = "DeviceLightEvent")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `DeviceLightEvent` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"]
13 pub type DeviceLightEvent;
14 # [wasm_bindgen (structural , method , getter , js_class = "DeviceLightEvent" , js_name = value)]
15 #[doc = "Getter for the `value` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/value)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"]
20 pub fn value(this: &DeviceLightEvent) -> f64;
21 #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")]
22 #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"]
27 pub fn new(type_: &str) -> Result<DeviceLightEvent, JsValue>;
28 #[cfg(feature = "DeviceLightEventInit")]
29 #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")]
30 #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`, `DeviceLightEventInit`*"]
35 pub fn new_with_event_init_dict(
36 type_: &str,
37 event_init_dict: &DeviceLightEventInit,
38 ) -> Result<DeviceLightEvent, JsValue>;
39}