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