1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ScrollBoxObject , typescript_type = "ScrollBoxObject")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `ScrollBoxObject` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
13     pub type ScrollBoxObject;
14     # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionX)]
15     #[doc = "Getter for the `positionX` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionX)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
position_x(this: &ScrollBoxObject) -> Result<i32, JsValue>20     pub fn position_x(this: &ScrollBoxObject) -> Result<i32, JsValue>;
21     # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionY)]
22     #[doc = "Getter for the `positionY` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionY)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
position_y(this: &ScrollBoxObject) -> Result<i32, JsValue>27     pub fn position_y(this: &ScrollBoxObject) -> Result<i32, JsValue>;
28     # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledWidth)]
29     #[doc = "Getter for the `scrolledWidth` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledWidth)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
scrolled_width(this: &ScrollBoxObject) -> Result<i32, JsValue>34     pub fn scrolled_width(this: &ScrollBoxObject) -> Result<i32, JsValue>;
35     # [wasm_bindgen (structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledHeight)]
36     #[doc = "Getter for the `scrolledHeight` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledHeight)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
scrolled_height(this: &ScrollBoxObject) -> Result<i32, JsValue>41     pub fn scrolled_height(this: &ScrollBoxObject) -> Result<i32, JsValue>;
42     #[cfg(feature = "Element")]
43     # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = ensureElementIsVisible)]
44     #[doc = "The `ensureElementIsVisible()` method."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/ensureElementIsVisible)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"]
ensure_element_is_visible( this: &ScrollBoxObject, child: &Element, ) -> Result<(), JsValue>49     pub fn ensure_element_is_visible(
50         this: &ScrollBoxObject,
51         child: &Element,
52     ) -> Result<(), JsValue>;
53     # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollBy)]
54     #[doc = "The `scrollBy()` method."]
55     #[doc = ""]
56     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollBy)"]
57     #[doc = ""]
58     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
scroll_by(this: &ScrollBoxObject, dx: i32, dy: i32) -> Result<(), JsValue>59     pub fn scroll_by(this: &ScrollBoxObject, dx: i32, dy: i32) -> Result<(), JsValue>;
60     # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollByIndex)]
61     #[doc = "The `scrollByIndex()` method."]
62     #[doc = ""]
63     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollByIndex)"]
64     #[doc = ""]
65     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
scroll_by_index(this: &ScrollBoxObject, dindexes: i32) -> Result<(), JsValue>66     pub fn scroll_by_index(this: &ScrollBoxObject, dindexes: i32) -> Result<(), JsValue>;
67     # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollTo)]
68     #[doc = "The `scrollTo()` method."]
69     #[doc = ""]
70     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollTo)"]
71     #[doc = ""]
72     #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"]
scroll_to(this: &ScrollBoxObject, x: i32, y: i32) -> Result<(), JsValue>73     pub fn scroll_to(this: &ScrollBoxObject, x: i32, y: i32) -> Result<(), JsValue>;
74     #[cfg(feature = "Element")]
75     # [wasm_bindgen (catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollToElement)]
76     #[doc = "The `scrollToElement()` method."]
77     #[doc = ""]
78     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollToElement)"]
79     #[doc = ""]
80     #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"]
scroll_to_element(this: &ScrollBoxObject, child: &Element) -> Result<(), JsValue>81     pub fn scroll_to_element(this: &ScrollBoxObject, child: &Element) -> Result<(), JsValue>;
82 }
83