]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_ShadowRoot.rs
1 #![allow(unused_imports)]
3 use wasm_bindgen
::prelude
::*;
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."]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)"]
12 #[doc = "*This API requires the following crate features to be activated: `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."]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"]
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."]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host)"]
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."]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
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."]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"]
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."]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"]
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."]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"]
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."]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"]
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."]
72 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"]
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."]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"]
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."]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"]
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."]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"]
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."]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"]
106 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"]
107 pub fn get_elements_by_tag_name_ns(
109 namespace
: Option
<&str>,
112 #[cfg(feature = "Element")]
113 # [wasm_bindgen (method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint)]
114 #[doc = "The `elementFromPoint()` method."]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"]
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."]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"]
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
;