maxcountryman_web_sys/features/
gen_DeviceProximityEvent.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 = DeviceProximityEvent , typescript_type = "DeviceProximityEvent")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `DeviceProximityEvent` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"]
13 pub type DeviceProximityEvent;
14 # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , 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/DeviceProximityEvent/value)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"]
20 pub fn value(this: &DeviceProximityEvent) -> f64;
21 # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = min)]
22 #[doc = "Getter for the `min` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/min)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"]
27 pub fn min(this: &DeviceProximityEvent) -> f64;
28 # [wasm_bindgen (structural , method , getter , js_class = "DeviceProximityEvent" , js_name = max)]
29 #[doc = "Getter for the `max` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/max)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"]
34 pub fn max(this: &DeviceProximityEvent) -> f64;
35 #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")]
36 #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"]
41 pub fn new(type_: &str) -> Result<DeviceProximityEvent, JsValue>;
42 #[cfg(feature = "DeviceProximityEventInit")]
43 #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")]
44 #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`, `DeviceProximityEventInit`*"]
49 pub fn new_with_event_init_dict(
50 type_: &str,
51 event_init_dict: &DeviceProximityEventInit,
52 ) -> Result<DeviceProximityEvent, JsValue>;
53}