web_sys/features/
gen_HtmlHrElement.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 = "HTMLHRElement",
14 typescript_type = "HTMLHRElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlHrElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
22 pub type HtmlHrElement;
23 #[wasm_bindgen(method, getter, js_class = "HTMLHRElement", js_name = "align")]
24 #[doc = "Getter for the `align` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
29 pub fn align(this: &HtmlHrElement) -> ::alloc::string::String;
30 #[wasm_bindgen(method, setter, js_class = "HTMLHRElement", js_name = "align")]
31 #[doc = "Setter for the `align` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
36 pub fn set_align(this: &HtmlHrElement, value: &str);
37 #[wasm_bindgen(method, getter, js_class = "HTMLHRElement", js_name = "color")]
38 #[doc = "Getter for the `color` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
43 pub fn color(this: &HtmlHrElement) -> ::alloc::string::String;
44 #[wasm_bindgen(method, setter, js_class = "HTMLHRElement", js_name = "color")]
45 #[doc = "Setter for the `color` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
50 pub fn set_color(this: &HtmlHrElement, value: &str);
51 #[wasm_bindgen(method, getter, js_class = "HTMLHRElement", js_name = "noShade")]
52 #[doc = "Getter for the `noShade` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
57 pub fn no_shade(this: &HtmlHrElement) -> bool;
58 #[wasm_bindgen(method, setter, js_class = "HTMLHRElement", js_name = "noShade")]
59 #[doc = "Setter for the `noShade` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
64 pub fn set_no_shade(this: &HtmlHrElement, value: bool);
65 #[wasm_bindgen(method, getter, js_class = "HTMLHRElement", js_name = "size")]
66 #[doc = "Getter for the `size` field of this object."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
71 pub fn size(this: &HtmlHrElement) -> ::alloc::string::String;
72 #[wasm_bindgen(method, setter, js_class = "HTMLHRElement", js_name = "size")]
73 #[doc = "Setter for the `size` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
78 pub fn set_size(this: &HtmlHrElement, value: &str);
79 #[wasm_bindgen(method, getter, js_class = "HTMLHRElement", js_name = "width")]
80 #[doc = "Getter for the `width` field of this object."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
85 pub fn width(this: &HtmlHrElement) -> ::alloc::string::String;
86 #[wasm_bindgen(method, setter, js_class = "HTMLHRElement", js_name = "width")]
87 #[doc = "Setter for the `width` field of this object."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"]
92 pub fn set_width(this: &HtmlHrElement, value: &str);
93}