web_sys/features/
gen_CssPseudoElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSSPseudoElement , typescript_type = "CSSPseudoElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `CssPseudoElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"]
14 pub type CssPseudoElement;
15 # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = type)]
16 #[doc = "Getter for the `type` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/type)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"]
21 pub fn type_(this: &CssPseudoElement) -> ::alloc::string::String;
22 #[cfg(feature = "Element")]
23 # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = parentElement)]
24 #[doc = "Getter for the `parentElement` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/parentElement)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `Element`*"]
29 pub fn parent_element(this: &CssPseudoElement) -> Element;
30 #[cfg(web_sys_unstable_apis)]
31 #[cfg(feature = "Animation")]
32 # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)]
33 #[doc = "The `animate()` method."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn animate(this: &CssPseudoElement, keyframes: Option<&::js_sys::Object>) -> Animation;
42 #[cfg(web_sys_unstable_apis)]
43 #[cfg(feature = "Animation")]
44 # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)]
45 #[doc = "The `animate()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 pub fn animate_with_f64(
54 this: &CssPseudoElement,
55 keyframes: Option<&::js_sys::Object>,
56 options: f64,
57 ) -> Animation;
58 #[cfg(web_sys_unstable_apis)]
59 #[cfg(all(feature = "Animation", feature = "KeyframeAnimationOptions",))]
60 # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)]
61 #[doc = "The `animate()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`, `KeyframeAnimationOptions`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 pub fn animate_with_keyframe_animation_options(
70 this: &CssPseudoElement,
71 keyframes: Option<&::js_sys::Object>,
72 options: &KeyframeAnimationOptions,
73 ) -> Animation;
74 #[cfg(web_sys_unstable_apis)]
75 # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = getAnimations)]
76 #[doc = "The `getAnimations()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/getAnimations)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"]
81 #[doc = ""]
82 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
83 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
84 pub fn get_animations(this: &CssPseudoElement) -> ::js_sys::Array;
85 #[cfg(web_sys_unstable_apis)]
86 #[cfg(feature = "GetAnimationsOptions")]
87 # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = getAnimations)]
88 #[doc = "The `getAnimations()` method."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/getAnimations)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `GetAnimationsOptions`*"]
93 #[doc = ""]
94 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
95 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
96 pub fn get_animations_with_options(
97 this: &CssPseudoElement,
98 options: &GetAnimationsOptions,
99 ) -> ::js_sys::Array;
100}