web_sys/features/
gen_AbstractRange.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "AbstractRange",
10 typescript_type = "AbstractRange"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `AbstractRange` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`*"]
18 pub type AbstractRange;
19 #[cfg(feature = "Node")]
20 #[wasm_bindgen(method, getter, js_class = "AbstractRange", js_name = "startContainer")]
21 #[doc = "Getter for the `startContainer` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/startContainer)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Node`*"]
26 pub fn start_container(this: &AbstractRange) -> Node;
27 #[wasm_bindgen(method, getter, js_class = "AbstractRange", js_name = "startOffset")]
28 #[doc = "Getter for the `startOffset` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/startOffset)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`*"]
33 pub fn start_offset(this: &AbstractRange) -> u32;
34 #[cfg(feature = "Node")]
35 #[wasm_bindgen(method, getter, js_class = "AbstractRange", js_name = "endContainer")]
36 #[doc = "Getter for the `endContainer` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/endContainer)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Node`*"]
41 pub fn end_container(this: &AbstractRange) -> Node;
42 #[wasm_bindgen(method, getter, js_class = "AbstractRange", js_name = "endOffset")]
43 #[doc = "Getter for the `endOffset` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/endOffset)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`*"]
48 pub fn end_offset(this: &AbstractRange) -> u32;
49 #[wasm_bindgen(method, getter, js_class = "AbstractRange", js_name = "collapsed")]
50 #[doc = "Getter for the `collapsed` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbstractRange/collapsed)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `AbstractRange`*"]
55 pub fn collapsed(this: &AbstractRange) -> bool;
56}