maxcountryman_web_sys/features/
gen_HashChangeEvent.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = HashChangeEvent , typescript_type = "HashChangeEvent")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `HashChangeEvent` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
13 pub type HashChangeEvent;
14 # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = oldURL)]
15 #[doc = "Getter for the `oldURL` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/oldURL)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
20 pub fn old_url(this: &HashChangeEvent) -> String;
21 # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL)]
22 #[doc = "Getter for the `newURL` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/newURL)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
27 pub fn new_url(this: &HashChangeEvent) -> String;
28 #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")]
29 #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
34 pub fn new(type_: &str) -> Result<HashChangeEvent, JsValue>;
35 #[cfg(feature = "HashChangeEventInit")]
36 #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")]
37 #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`, `HashChangeEventInit`*"]
42 pub fn new_with_event_init_dict(
43 type_: &str,
44 event_init_dict: &HashChangeEventInit,
45 ) -> Result<HashChangeEvent, JsValue>;
46 # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)]
47 #[doc = "The `initHashChangeEvent()` method."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
52 pub fn init_hash_change_event(this: &HashChangeEvent, type_arg: &str);
53 # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)]
54 #[doc = "The `initHashChangeEvent()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
59 pub fn init_hash_change_event_with_can_bubble_arg(
60 this: &HashChangeEvent,
61 type_arg: &str,
62 can_bubble_arg: bool,
63 );
64 # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)]
65 #[doc = "The `initHashChangeEvent()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
70 pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg(
71 this: &HashChangeEvent,
72 type_arg: &str,
73 can_bubble_arg: bool,
74 cancelable_arg: bool,
75 );
76 # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)]
77 #[doc = "The `initHashChangeEvent()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
82 pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg(
83 this: &HashChangeEvent,
84 type_arg: &str,
85 can_bubble_arg: bool,
86 cancelable_arg: bool,
87 old_url_arg: &str,
88 );
89 # [wasm_bindgen (method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent)]
90 #[doc = "The `initHashChangeEvent()` method."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"]
95 pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg_and_new_url_arg(
96 this: &HashChangeEvent,
97 type_arg: &str,
98 can_bubble_arg: bool,
99 cancelable_arg: bool,
100 old_url_arg: &str,
101 new_url_arg: &str,
102 );
103}