web_sys/features/
gen_XrInputSourcesChangeEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "Event",
10 extends = "::js_sys::Object",
11 js_name = "XRInputSourcesChangeEvent",
12 typescript_type = "XRInputSourcesChangeEvent"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `XrInputSourcesChangeEvent` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type XrInputSourcesChangeEvent;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "XrSession")]
26 #[wasm_bindgen(
27 method,
28 getter,
29 js_class = "XRInputSourcesChangeEvent",
30 js_name = "session"
31 )]
32 #[doc = "Getter for the `session` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/session)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`, `XrSession`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn session(this: &XrInputSourcesChangeEvent) -> XrSession;
41 #[cfg(web_sys_unstable_apis)]
42 #[cfg(feature = "XrInputSource")]
43 #[wasm_bindgen(
44 method,
45 getter,
46 js_class = "XRInputSourcesChangeEvent",
47 js_name = "added"
48 )]
49 #[doc = "Getter for the `added` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/added)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourcesChangeEvent`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn added(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array<XrInputSource>;
58 #[cfg(web_sys_unstable_apis)]
59 #[cfg(feature = "XrInputSource")]
60 #[wasm_bindgen(
61 method,
62 getter,
63 js_class = "XRInputSourcesChangeEvent",
64 js_name = "removed"
65 )]
66 #[doc = "Getter for the `removed` field of this object."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/removed)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourcesChangeEvent`*"]
71 #[doc = ""]
72 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
73 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
74 pub fn removed(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array<XrInputSource>;
75 #[cfg(web_sys_unstable_apis)]
76 #[cfg(feature = "XrInputSourcesChangeEventInit")]
77 #[wasm_bindgen(catch, constructor, js_class = "XRInputSourcesChangeEvent")]
78 #[doc = "The `new XrInputSourcesChangeEvent(..)` constructor, creating a new instance of `XrInputSourcesChangeEvent`."]
79 #[doc = ""]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/XRInputSourcesChangeEvent)"]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`, `XrInputSourcesChangeEventInit`*"]
83 #[doc = ""]
84 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
85 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
86 pub fn new(
87 type_: &str,
88 event_init_dict: &XrInputSourcesChangeEventInit,
89 ) -> Result<XrInputSourcesChangeEvent, JsValue>;
90}