maxcountryman_web_sys/features/
gen_ListBoxObject.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ListBoxObject , typescript_type = "ListBoxObject")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `ListBoxObject` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
13 pub type ListBoxObject;
14 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = ensureIndexIsVisible)]
15 #[doc = "The `ensureIndexIsVisible()` method."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/ensureIndexIsVisible)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
20 pub fn ensure_index_is_visible(this: &ListBoxObject, row_index: i32);
21 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfFirstVisibleRow)]
22 #[doc = "The `getIndexOfFirstVisibleRow()` method."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfFirstVisibleRow)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
27 pub fn get_index_of_first_visible_row(this: &ListBoxObject) -> i32;
28 #[cfg(feature = "Element")]
29 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getIndexOfItem)]
30 #[doc = "The `getIndexOfItem()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfItem)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"]
35 pub fn get_index_of_item(this: &ListBoxObject, item: &Element) -> i32;
36 #[cfg(feature = "Element")]
37 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getItemAtIndex)]
38 #[doc = "The `getItemAtIndex()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getItemAtIndex)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"]
43 pub fn get_item_at_index(this: &ListBoxObject, index: i32) -> Option<Element>;
44 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getNumberOfVisibleRows)]
45 #[doc = "The `getNumberOfVisibleRows()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getNumberOfVisibleRows)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
50 pub fn get_number_of_visible_rows(this: &ListBoxObject) -> i32;
51 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowCount)]
52 #[doc = "The `getRowCount()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowCount)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
57 pub fn get_row_count(this: &ListBoxObject) -> i32;
58 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = getRowHeight)]
59 #[doc = "The `getRowHeight()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowHeight)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
64 pub fn get_row_height(this: &ListBoxObject) -> i32;
65 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollByLines)]
66 #[doc = "The `scrollByLines()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollByLines)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
71 pub fn scroll_by_lines(this: &ListBoxObject, num_lines: i32);
72 # [wasm_bindgen (method , structural , js_class = "ListBoxObject" , js_name = scrollToIndex)]
73 #[doc = "The `scrollToIndex()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollToIndex)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"]
78 pub fn scroll_to_index(this: &ListBoxObject, row_index: i32);
79}