web_sys/features/
gen_XrInputSourceArray.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 = "::js_sys::Object",
10 js_name = "XRInputSourceArray",
11 typescript_type = "XRInputSourceArray"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `XrInputSourceArray` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type XrInputSourceArray;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "XRInputSourceArray", js_name = "length")]
25 #[doc = "Getter for the `length` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/length)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn length(this: &XrInputSourceArray) -> u32;
34 #[cfg(web_sys_unstable_apis)]
35 #[cfg(feature = "XrInputSource")]
36 #[wasm_bindgen(catch, method, js_class = "XRInputSourceArray", js_name = "forEach")]
37 #[doc = "The `forEach()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/forEach)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"]
42 #[doc = ""]
43 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45 pub fn for_each(
46 this: &XrInputSourceArray,
47 callback: &::js_sys::Function<fn(XrInputSource, ::js_sys::Number) -> ::js_sys::Undefined>,
48 ) -> Result<(), JsValue>;
49 #[cfg(web_sys_unstable_apis)]
50 #[cfg(feature = "XrInputSource")]
51 #[wasm_bindgen(method, js_class = "XRInputSourceArray", indexing_getter)]
52 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
53 #[doc = ""]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"]
56 #[doc = ""]
57 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
58 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
59 pub fn get(this: &XrInputSourceArray, index: u32) -> Option<XrInputSource>;
60 #[cfg(web_sys_unstable_apis)]
61 #[cfg(feature = "XrInputSource")]
62 #[wasm_bindgen(method, js_class = "XRInputSourceArray")]
63 #[doc = "The `entries()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/entries)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"]
68 #[doc = ""]
69 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
71 pub fn entries(this: &XrInputSourceArray) -> ::js_sys::Iterator<XrInputSource>;
72 #[cfg(web_sys_unstable_apis)]
73 #[wasm_bindgen(method, js_class = "XRInputSourceArray")]
74 #[doc = "The `keys()` method."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/keys)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn keys(this: &XrInputSourceArray) -> ::js_sys::Iterator<::js_sys::Number>;
83 #[cfg(web_sys_unstable_apis)]
84 #[cfg(feature = "XrInputSource")]
85 #[wasm_bindgen(method, js_class = "XRInputSourceArray")]
86 #[doc = "The `values()` method."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/values)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"]
91 #[doc = ""]
92 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
93 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
94 pub fn values(this: &XrInputSourceArray) -> ::js_sys::Iterator<XrInputSource>;
95}