web_sys/features/
gen_HighlightsFromPointOptions.rs1#![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 = HighlightsFromPointOptions)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `HighlightsFromPointOptions` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HighlightsFromPointOptions`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type HighlightsFromPointOptions;
17 #[cfg(web_sys_unstable_apis)]
18 #[cfg(feature = "ShadowRoot")]
19 #[doc = "Get the `shadowRoots` field of this object."]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HighlightsFromPointOptions`, `ShadowRoot`*"]
22 #[doc = ""]
23 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
24 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
25 #[wasm_bindgen(method, getter = "shadowRoots")]
26 pub fn get_shadow_roots(
27 this: &HighlightsFromPointOptions,
28 ) -> Option<::js_sys::Array<ShadowRoot>>;
29 #[cfg(web_sys_unstable_apis)]
30 #[cfg(feature = "ShadowRoot")]
31 #[doc = "Change the `shadowRoots` field of this object."]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HighlightsFromPointOptions`, `ShadowRoot`*"]
34 #[doc = ""]
35 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
36 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
37 #[wasm_bindgen(method, setter = "shadowRoots")]
38 pub fn set_shadow_roots(this: &HighlightsFromPointOptions, val: &[ShadowRoot]);
39}
40#[cfg(web_sys_unstable_apis)]
41impl HighlightsFromPointOptions {
42 #[doc = "Construct a new `HighlightsFromPointOptions`."]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `HighlightsFromPointOptions`*"]
45 #[doc = ""]
46 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
47 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
48 pub fn new() -> Self {
49 #[allow(unused_mut)]
50 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
51 ret
52 }
53 #[cfg(web_sys_unstable_apis)]
54 #[cfg(feature = "ShadowRoot")]
55 #[deprecated = "Use `set_shadow_roots()` instead."]
56 pub fn shadow_roots(&mut self, val: &[ShadowRoot]) -> &mut Self {
57 self.set_shadow_roots(val);
58 self
59 }
60}
61#[cfg(web_sys_unstable_apis)]
62impl Default for HighlightsFromPointOptions {
63 fn default() -> Self {
64 Self::new()
65 }
66}