web_sys/features/
gen_HtmlAreaElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAreaElement , typescript_type = "HTMLAreaElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `HtmlAreaElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
14    pub type HtmlAreaElement;
15    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = alt)]
16    #[doc = "Getter for the `alt` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
21    pub fn alt(this: &HtmlAreaElement) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = alt)]
23    #[doc = "Setter for the `alt` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
28    pub fn set_alt(this: &HtmlAreaElement, value: &str);
29    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = coords)]
30    #[doc = "Getter for the `coords` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
35    pub fn coords(this: &HtmlAreaElement) -> ::alloc::string::String;
36    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = coords)]
37    #[doc = "Setter for the `coords` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
42    pub fn set_coords(this: &HtmlAreaElement, value: &str);
43    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = shape)]
44    #[doc = "Getter for the `shape` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
49    pub fn shape(this: &HtmlAreaElement) -> ::alloc::string::String;
50    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = shape)]
51    #[doc = "Setter for the `shape` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
56    pub fn set_shape(this: &HtmlAreaElement, value: &str);
57    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = target)]
58    #[doc = "Getter for the `target` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
63    pub fn target(this: &HtmlAreaElement) -> ::alloc::string::String;
64    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = target)]
65    #[doc = "Setter for the `target` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
70    pub fn set_target(this: &HtmlAreaElement, value: &str);
71    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = download)]
72    #[doc = "Getter for the `download` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
77    pub fn download(this: &HtmlAreaElement) -> ::alloc::string::String;
78    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = download)]
79    #[doc = "Setter for the `download` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
84    pub fn set_download(this: &HtmlAreaElement, value: &str);
85    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = ping)]
86    #[doc = "Getter for the `ping` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
91    pub fn ping(this: &HtmlAreaElement) -> ::alloc::string::String;
92    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = ping)]
93    #[doc = "Setter for the `ping` field of this object."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
98    pub fn set_ping(this: &HtmlAreaElement, value: &str);
99    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = rel)]
100    #[doc = "Getter for the `rel` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
105    pub fn rel(this: &HtmlAreaElement) -> ::alloc::string::String;
106    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = rel)]
107    #[doc = "Setter for the `rel` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
112    pub fn set_rel(this: &HtmlAreaElement, value: &str);
113    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)]
114    #[doc = "Getter for the `referrerPolicy` field of this object."]
115    #[doc = ""]
116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
119    pub fn referrer_policy(this: &HtmlAreaElement) -> ::alloc::string::String;
120    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)]
121    #[doc = "Setter for the `referrerPolicy` field of this object."]
122    #[doc = ""]
123    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
126    pub fn set_referrer_policy(this: &HtmlAreaElement, value: &str);
127    #[cfg(feature = "DomTokenList")]
128    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = relList)]
129    #[doc = "Getter for the `relList` field of this object."]
130    #[doc = ""]
131    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/relList)"]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAreaElement`*"]
134    pub fn rel_list(this: &HtmlAreaElement) -> DomTokenList;
135    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = noHref)]
136    #[doc = "Getter for the `noHref` field of this object."]
137    #[doc = ""]
138    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"]
139    #[doc = ""]
140    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
141    pub fn no_href(this: &HtmlAreaElement) -> bool;
142    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = noHref)]
143    #[doc = "Setter for the `noHref` field of this object."]
144    #[doc = ""]
145    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"]
146    #[doc = ""]
147    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
148    pub fn set_no_href(this: &HtmlAreaElement, value: bool);
149    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = href)]
150    #[doc = "Getter for the `href` field of this object."]
151    #[doc = ""]
152    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"]
153    #[doc = ""]
154    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
155    pub fn href(this: &HtmlAreaElement) -> ::alloc::string::String;
156    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = href)]
157    #[doc = "Setter for the `href` field of this object."]
158    #[doc = ""]
159    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"]
160    #[doc = ""]
161    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
162    pub fn set_href(this: &HtmlAreaElement, value: &str);
163    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = origin)]
164    #[doc = "Getter for the `origin` field of this object."]
165    #[doc = ""]
166    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/origin)"]
167    #[doc = ""]
168    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
169    pub fn origin(this: &HtmlAreaElement) -> ::alloc::string::String;
170    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = protocol)]
171    #[doc = "Getter for the `protocol` field of this object."]
172    #[doc = ""]
173    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"]
174    #[doc = ""]
175    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
176    pub fn protocol(this: &HtmlAreaElement) -> ::alloc::string::String;
177    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = protocol)]
178    #[doc = "Setter for the `protocol` field of this object."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
183    pub fn set_protocol(this: &HtmlAreaElement, value: &str);
184    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = username)]
185    #[doc = "Getter for the `username` field of this object."]
186    #[doc = ""]
187    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"]
188    #[doc = ""]
189    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
190    pub fn username(this: &HtmlAreaElement) -> ::alloc::string::String;
191    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = username)]
192    #[doc = "Setter for the `username` field of this object."]
193    #[doc = ""]
194    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"]
195    #[doc = ""]
196    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
197    pub fn set_username(this: &HtmlAreaElement, value: &str);
198    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = password)]
199    #[doc = "Getter for the `password` field of this object."]
200    #[doc = ""]
201    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"]
202    #[doc = ""]
203    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
204    pub fn password(this: &HtmlAreaElement) -> ::alloc::string::String;
205    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = password)]
206    #[doc = "Setter for the `password` field of this object."]
207    #[doc = ""]
208    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"]
209    #[doc = ""]
210    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
211    pub fn set_password(this: &HtmlAreaElement, value: &str);
212    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = host)]
213    #[doc = "Getter for the `host` field of this object."]
214    #[doc = ""]
215    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"]
216    #[doc = ""]
217    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
218    pub fn host(this: &HtmlAreaElement) -> ::alloc::string::String;
219    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = host)]
220    #[doc = "Setter for the `host` field of this object."]
221    #[doc = ""]
222    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"]
223    #[doc = ""]
224    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
225    pub fn set_host(this: &HtmlAreaElement, value: &str);
226    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hostname)]
227    #[doc = "Getter for the `hostname` field of this object."]
228    #[doc = ""]
229    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"]
230    #[doc = ""]
231    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
232    pub fn hostname(this: &HtmlAreaElement) -> ::alloc::string::String;
233    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hostname)]
234    #[doc = "Setter for the `hostname` field of this object."]
235    #[doc = ""]
236    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"]
237    #[doc = ""]
238    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
239    pub fn set_hostname(this: &HtmlAreaElement, value: &str);
240    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = port)]
241    #[doc = "Getter for the `port` field of this object."]
242    #[doc = ""]
243    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"]
244    #[doc = ""]
245    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
246    pub fn port(this: &HtmlAreaElement) -> ::alloc::string::String;
247    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = port)]
248    #[doc = "Setter for the `port` field of this object."]
249    #[doc = ""]
250    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"]
251    #[doc = ""]
252    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
253    pub fn set_port(this: &HtmlAreaElement, value: &str);
254    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = pathname)]
255    #[doc = "Getter for the `pathname` field of this object."]
256    #[doc = ""]
257    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"]
258    #[doc = ""]
259    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
260    pub fn pathname(this: &HtmlAreaElement) -> ::alloc::string::String;
261    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = pathname)]
262    #[doc = "Setter for the `pathname` field of this object."]
263    #[doc = ""]
264    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"]
265    #[doc = ""]
266    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
267    pub fn set_pathname(this: &HtmlAreaElement, value: &str);
268    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = search)]
269    #[doc = "Getter for the `search` field of this object."]
270    #[doc = ""]
271    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
274    pub fn search(this: &HtmlAreaElement) -> ::alloc::string::String;
275    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = search)]
276    #[doc = "Setter for the `search` field of this object."]
277    #[doc = ""]
278    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"]
279    #[doc = ""]
280    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
281    pub fn set_search(this: &HtmlAreaElement, value: &str);
282    # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = hash)]
283    #[doc = "Getter for the `hash` field of this object."]
284    #[doc = ""]
285    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"]
286    #[doc = ""]
287    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
288    pub fn hash(this: &HtmlAreaElement) -> ::alloc::string::String;
289    # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hash)]
290    #[doc = "Setter for the `hash` field of this object."]
291    #[doc = ""]
292    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"]
293    #[doc = ""]
294    #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"]
295    pub fn set_hash(this: &HtmlAreaElement, value: &str);
296}