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