Skip to main content

web_sys/features/
gen_HighlightRegistry.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HighlightRegistry , typescript_type = "HighlightRegistry")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `HighlightRegistry` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type HighlightRegistry;
19    #[cfg(web_sys_unstable_apis)]
20    # [wasm_bindgen (structural , method , getter , js_class = "HighlightRegistry" , js_name = size)]
21    #[doc = "Getter for the `size` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/size)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
26    #[doc = ""]
27    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
29    pub fn size(this: &HighlightRegistry) -> u32;
30    #[cfg(web_sys_unstable_apis)]
31    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = clear)]
32    #[doc = "The `clear()` method."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/clear)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
37    #[doc = ""]
38    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40    pub fn clear(this: &HighlightRegistry);
41    #[cfg(web_sys_unstable_apis)]
42    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = delete)]
43    #[doc = "The `delete()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/delete)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    pub fn delete(this: &HighlightRegistry, key: &str) -> bool;
52    #[cfg(web_sys_unstable_apis)]
53    #[cfg(feature = "Highlight")]
54    # [wasm_bindgen (catch , method , structural , js_class = "HighlightRegistry" , js_name = forEach)]
55    #[doc = "The `forEach()` method."]
56    #[doc = ""]
57    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/forEach)"]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightRegistry`*"]
60    #[doc = ""]
61    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
63    pub fn for_each(
64        this: &HighlightRegistry,
65        callback: &::js_sys::Function<fn(Highlight, ::js_sys::JsString) -> ::js_sys::Undefined>,
66    ) -> Result<(), JsValue>;
67    #[cfg(web_sys_unstable_apis)]
68    #[cfg(feature = "Highlight")]
69    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = get)]
70    #[doc = "The `get()` method."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/get)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightRegistry`*"]
75    #[doc = ""]
76    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78    pub fn get(this: &HighlightRegistry, key: &str) -> Option<Highlight>;
79    #[cfg(web_sys_unstable_apis)]
80    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = has)]
81    #[doc = "The `has()` method."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/has)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    pub fn has(this: &HighlightRegistry, key: &str) -> bool;
90    #[cfg(web_sys_unstable_apis)]
91    #[cfg(feature = "HighlightHitResult")]
92    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = highlightsFromPoint)]
93    #[doc = "The `highlightsFromPoint()` method."]
94    #[doc = ""]
95    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/highlightsFromPoint)"]
96    #[doc = ""]
97    #[doc = "*This API requires the following crate features to be activated: `HighlightHitResult`, `HighlightRegistry`*"]
98    #[doc = ""]
99    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
100    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
101    pub fn highlights_from_point(
102        this: &HighlightRegistry,
103        x: f32,
104        y: f32,
105    ) -> ::js_sys::Array<HighlightHitResult>;
106    #[cfg(web_sys_unstable_apis)]
107    #[cfg(all(feature = "HighlightHitResult", feature = "HighlightsFromPointOptions",))]
108    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = highlightsFromPoint)]
109    #[doc = "The `highlightsFromPoint()` method."]
110    #[doc = ""]
111    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/highlightsFromPoint)"]
112    #[doc = ""]
113    #[doc = "*This API requires the following crate features to be activated: `HighlightHitResult`, `HighlightRegistry`, `HighlightsFromPointOptions`*"]
114    #[doc = ""]
115    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
116    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
117    pub fn highlights_from_point_with_options(
118        this: &HighlightRegistry,
119        x: f32,
120        y: f32,
121        options: &HighlightsFromPointOptions,
122    ) -> ::js_sys::Array<HighlightHitResult>;
123    #[cfg(web_sys_unstable_apis)]
124    #[cfg(feature = "Highlight")]
125    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = set)]
126    #[doc = "The `set()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/set)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightRegistry`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    pub fn set(this: &HighlightRegistry, key: &str, value: &Highlight) -> HighlightRegistry;
135    #[cfg(web_sys_unstable_apis)]
136    #[cfg(feature = "Highlight")]
137    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = entries)]
138    #[doc = "The `entries()` method."]
139    #[doc = ""]
140    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/entries)"]
141    #[doc = ""]
142    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightRegistry`*"]
143    #[doc = ""]
144    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
145    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
146    pub fn entries(
147        this: &HighlightRegistry,
148    ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, Highlight)>>;
149    #[cfg(web_sys_unstable_apis)]
150    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = keys)]
151    #[doc = "The `keys()` method."]
152    #[doc = ""]
153    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/keys)"]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `HighlightRegistry`*"]
156    #[doc = ""]
157    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
158    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
159    pub fn keys(this: &HighlightRegistry) -> ::js_sys::Iterator<::js_sys::JsString>;
160    #[cfg(web_sys_unstable_apis)]
161    #[cfg(feature = "Highlight")]
162    # [wasm_bindgen (method , structural , js_class = "HighlightRegistry" , js_name = values)]
163    #[doc = "The `values()` method."]
164    #[doc = ""]
165    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HighlightRegistry/values)"]
166    #[doc = ""]
167    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightRegistry`*"]
168    #[doc = ""]
169    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
170    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
171    pub fn values(this: &HighlightRegistry) -> ::js_sys::Iterator<Highlight>;
172}