Skip to main content

web_sys/features/
gen_StyleSheet.rs

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