Skip to main content

web_sys/features/
gen_XrInputSourceArray.rs

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