web_sys/features/
gen_CssGroupingRule.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `CssGroupingRule` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
14 pub type CssGroupingRule;
15 #[cfg(feature = "CssRuleList")]
16 # [wasm_bindgen (structural , method , getter , js_class = "CSSGroupingRule" , js_name = cssRules)]
17 #[doc = "Getter for the `cssRules` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"]
22 pub fn css_rules(this: &CssGroupingRule) -> CssRuleList;
23 # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule)]
24 #[doc = "The `deleteRule()` method."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
29 pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>;
30 # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)]
31 #[doc = "The `insertRule()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
36 pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result<u32, JsValue>;
37 # [wasm_bindgen (catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule)]
38 #[doc = "The `insertRule()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"]
43 pub fn insert_rule_with_index(
44 this: &CssGroupingRule,
45 rule: &str,
46 index: u32,
47 ) -> Result<u32, JsValue>;
48}