web_sys/features/
gen_HashChangeEvent.rs

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