]> git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_ShadowRoot.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_ShadowRoot.rs
1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6 # [wasm_bindgen (extends = DocumentFragment , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ShadowRoot , typescript_type = "ShadowRoot")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `ShadowRoot` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
13 pub type ShadowRoot;
14 #[cfg(feature = "ShadowRootMode")]
15 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = mode)]
16 #[doc = "Getter for the `mode` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `ShadowRootMode`*"]
21 pub fn mode(this: &ShadowRoot) -> ShadowRootMode;
22 #[cfg(feature = "Element")]
23 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = host)]
24 #[doc = "Getter for the `host` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
29 pub fn host(this: &ShadowRoot) -> Element;
30 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = innerHTML)]
31 #[doc = "Getter for the `innerHTML` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
36 pub fn inner_html(this: &ShadowRoot) -> String;
37 # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML)]
38 #[doc = "Setter for the `innerHTML` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
43 pub fn set_inner_html(this: &ShadowRoot, value: &str);
44 #[cfg(feature = "Element")]
45 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = activeElement)]
46 #[doc = "Getter for the `activeElement` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
51 pub fn active_element(this: &ShadowRoot) -> Option<Element>;
52 #[cfg(feature = "StyleSheetList")]
53 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = styleSheets)]
54 #[doc = "Getter for the `styleSheets` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `StyleSheetList`*"]
59 pub fn style_sheets(this: &ShadowRoot) -> StyleSheetList;
60 #[cfg(feature = "Element")]
61 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = pointerLockElement)]
62 #[doc = "Getter for the `pointerLockElement` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
67 pub fn pointer_lock_element(this: &ShadowRoot) -> Option<Element>;
68 #[cfg(feature = "Element")]
69 # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = fullscreenElement)]
70 #[doc = "Getter for the `fullscreenElement` field of this object."]
71 #[doc = ""]
72 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
75 pub fn fullscreen_element(this: &ShadowRoot) -> Option<Element>;
76 #[cfg(feature = "Element")]
77 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementById)]
78 #[doc = "The `getElementById()` method."]
79 #[doc = ""]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
83 pub fn get_element_by_id(this: &ShadowRoot, element_id: &str) -> Option<Element>;
84 #[cfg(feature = "HtmlCollection")]
85 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByClassName)]
86 #[doc = "The `getElementsByClassName()` method."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
91 pub fn get_elements_by_class_name(this: &ShadowRoot, class_names: &str) -> HtmlCollection;
92 #[cfg(feature = "HtmlCollection")]
93 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagName)]
94 #[doc = "The `getElementsByTagName()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
99 pub fn get_elements_by_tag_name(this: &ShadowRoot, local_name: &str) -> HtmlCollection;
100 #[cfg(feature = "HtmlCollection")]
101 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagNameNS)]
102 #[doc = "The `getElementsByTagNameNS()` method."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
107 pub fn get_elements_by_tag_name_ns(
108 this: &ShadowRoot,
109 namespace: Option<&str>,
110 local_name: &str,
111 ) -> HtmlCollection;
112 #[cfg(feature = "Element")]
113 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint)]
114 #[doc = "The `elementFromPoint()` method."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"]
119 pub fn element_from_point(this: &ShadowRoot, x: f32, y: f32) -> Option<Element>;
120 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementsFromPoint)]
121 #[doc = "The `elementsFromPoint()` method."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"]
126 pub fn elements_from_point(this: &ShadowRoot, x: f32, y: f32) -> ::js_sys::Array;
127 }