web_sys/features/
gen_ListBoxObject.rs

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