web_sys/features/
gen_HtmlMapElement.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 = "HTMLMapElement",
14 typescript_type = "HTMLMapElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlMapElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"]
22 pub type HtmlMapElement;
23 #[wasm_bindgen(method, getter, js_class = "HTMLMapElement", js_name = "name")]
24 #[doc = "Getter for the `name` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"]
29 pub fn name(this: &HtmlMapElement) -> ::alloc::string::String;
30 #[wasm_bindgen(method, setter, js_class = "HTMLMapElement", js_name = "name")]
31 #[doc = "Setter for the `name` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"]
36 pub fn set_name(this: &HtmlMapElement, value: &str);
37 #[cfg(feature = "HtmlCollection")]
38 #[wasm_bindgen(method, getter, js_class = "HTMLMapElement", js_name = "areas")]
39 #[doc = "Getter for the `areas` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/areas)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlMapElement`*"]
44 pub fn areas(this: &HtmlMapElement) -> HtmlCollection;
45}