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