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