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