1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StyleSheet , typescript_type = "StyleSheet")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `StyleSheet` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
13     pub type StyleSheet;
14     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = type)]
15     #[doc = "Getter for the `type` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
type_(this: &StyleSheet) -> String20     pub fn type_(this: &StyleSheet) -> String;
21     # [wasm_bindgen (structural , catch , method , getter , js_class = "StyleSheet" , js_name = href)]
22     #[doc = "Getter for the `href` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/href)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
href(this: &StyleSheet) -> Result<Option<String>, JsValue>27     pub fn href(this: &StyleSheet) -> Result<Option<String>, JsValue>;
28     #[cfg(feature = "Node")]
29     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = ownerNode)]
30     #[doc = "Getter for the `ownerNode` field of this object."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/ownerNode)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `Node`, `StyleSheet`*"]
owner_node(this: &StyleSheet) -> Option<Node>35     pub fn owner_node(this: &StyleSheet) -> Option<Node>;
36     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = parentStyleSheet)]
37     #[doc = "Getter for the `parentStyleSheet` field of this object."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/parentStyleSheet)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
parent_style_sheet(this: &StyleSheet) -> Option<StyleSheet>42     pub fn parent_style_sheet(this: &StyleSheet) -> Option<StyleSheet>;
43     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = title)]
44     #[doc = "Getter for the `title` field of this object."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
title(this: &StyleSheet) -> Option<String>49     pub fn title(this: &StyleSheet) -> Option<String>;
50     #[cfg(feature = "MediaList")]
51     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = media)]
52     #[doc = "Getter for the `media` field of this object."]
53     #[doc = ""]
54     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/media)"]
55     #[doc = ""]
56     #[doc = "*This API requires the following crate features to be activated: `MediaList`, `StyleSheet`*"]
media(this: &StyleSheet) -> MediaList57     pub fn media(this: &StyleSheet) -> MediaList;
58     # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = disabled)]
59     #[doc = "Getter for the `disabled` field of this object."]
60     #[doc = ""]
61     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"]
62     #[doc = ""]
63     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
disabled(this: &StyleSheet) -> bool64     pub fn disabled(this: &StyleSheet) -> bool;
65     # [wasm_bindgen (structural , method , setter , js_class = "StyleSheet" , js_name = disabled)]
66     #[doc = "Setter for the `disabled` field of this object."]
67     #[doc = ""]
68     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"]
69     #[doc = ""]
70     #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"]
set_disabled(this: &StyleSheet, value: bool)71     pub fn set_disabled(this: &StyleSheet, value: bool);
72 }
73