Skip to main content

web_sys/features/
gen_AbstractRange.rs

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