Skip to main content

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