maxcountryman_web_sys/features/
gen_PluginArray.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PluginArray , typescript_type = "PluginArray")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `PluginArray` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"]
13 pub type PluginArray;
14 # [wasm_bindgen (structural , method , getter , js_class = "PluginArray" , js_name = length)]
15 #[doc = "Getter for the `length` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/length)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"]
20 pub fn length(this: &PluginArray) -> u32;
21 #[cfg(feature = "Plugin")]
22 # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = item)]
23 #[doc = "The `item()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/item)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"]
28 pub fn item(this: &PluginArray, index: u32) -> Option<Plugin>;
29 #[cfg(feature = "Plugin")]
30 # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = namedItem)]
31 #[doc = "The `namedItem()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/namedItem)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"]
36 pub fn named_item(this: &PluginArray, name: &str) -> Option<Plugin>;
37 # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)]
38 #[doc = "The `refresh()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"]
43 pub fn refresh(this: &PluginArray);
44 # [wasm_bindgen (method , structural , js_class = "PluginArray" , js_name = refresh)]
45 #[doc = "The `refresh()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"]
50 pub fn refresh_with_reload_documents(this: &PluginArray, reload_documents: bool);
51 #[cfg(feature = "Plugin")]
52 #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)]
53 #[doc = "Indexing getter."]
54 #[doc = ""]
55 #[doc = ""]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"]
58 pub fn get_with_index(this: &PluginArray, index: u32) -> Option<Plugin>;
59 #[cfg(feature = "Plugin")]
60 #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)]
61 #[doc = "Indexing getter."]
62 #[doc = ""]
63 #[doc = ""]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"]
66 pub fn get_with_name(this: &PluginArray, name: &str) -> Option<Plugin>;
67}