web_sys/features/
gen_HtmlProgressElement.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 = "HTMLProgressElement",
14 typescript_type = "HTMLProgressElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlProgressElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
22 pub type HtmlProgressElement;
23 #[wasm_bindgen(method, getter, js_class = "HTMLProgressElement", js_name = "value")]
24 #[doc = "Getter for the `value` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
29 pub fn value(this: &HtmlProgressElement) -> f64;
30 #[wasm_bindgen(method, setter, js_class = "HTMLProgressElement", js_name = "value")]
31 #[doc = "Setter for the `value` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
36 pub fn set_value(this: &HtmlProgressElement, value: f64);
37 #[wasm_bindgen(method, getter, js_class = "HTMLProgressElement", js_name = "max")]
38 #[doc = "Getter for the `max` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
43 pub fn max(this: &HtmlProgressElement) -> f64;
44 #[wasm_bindgen(method, setter, js_class = "HTMLProgressElement", js_name = "max")]
45 #[doc = "Setter for the `max` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
50 pub fn set_max(this: &HtmlProgressElement, value: f64);
51 #[wasm_bindgen(method, getter, js_class = "HTMLProgressElement", js_name = "position")]
52 #[doc = "Getter for the `position` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/position)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"]
57 pub fn position(this: &HtmlProgressElement) -> f64;
58 #[cfg(feature = "NodeList")]
59 #[wasm_bindgen(method, getter, js_class = "HTMLProgressElement", js_name = "labels")]
60 #[doc = "Getter for the `labels` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/labels)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`, `NodeList`*"]
65 pub fn labels(this: &HtmlProgressElement) -> NodeList;
66}