Skip to main content

web_sys/features/
gen_PluginArray.rs

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