web_sys/features/
gen_CssKeyframeRule.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "CssRule",
9 extends = "::js_sys::Object",
10 js_name = "CSSKeyframeRule",
11 typescript_type = "CSSKeyframeRule"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `CssKeyframeRule` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"]
19 pub type CssKeyframeRule;
20 #[wasm_bindgen(method, getter, js_class = "CSSKeyframeRule", js_name = "keyText")]
21 #[doc = "Getter for the `keyText` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"]
26 pub fn key_text(this: &CssKeyframeRule) -> ::alloc::string::String;
27 #[wasm_bindgen(method, setter, js_class = "CSSKeyframeRule", js_name = "keyText")]
28 #[doc = "Setter for the `keyText` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"]
33 pub fn set_key_text(this: &CssKeyframeRule, value: &str);
34 #[cfg(feature = "CssStyleDeclaration")]
35 #[wasm_bindgen(method, getter, js_class = "CSSKeyframeRule", js_name = "style")]
36 #[doc = "Getter for the `style` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/style)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`, `CssStyleDeclaration`*"]
41 pub fn style(this: &CssKeyframeRule) -> CssStyleDeclaration;
42}