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