web_sys/features/
gen_TreeBoxObject.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 = TreeBoxObject , typescript_type = "TreeBoxObject")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `TreeBoxObject` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
14    pub type TreeBoxObject;
15    # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = focused)]
16    #[doc = "Getter for the `focused` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
21    pub fn focused(this: &TreeBoxObject) -> bool;
22    # [wasm_bindgen (structural , method , setter , js_class = "TreeBoxObject" , js_name = focused)]
23    #[doc = "Setter for the `focused` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
28    pub fn set_focused(this: &TreeBoxObject, value: bool);
29    #[cfg(feature = "Element")]
30    # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = treeBody)]
31    #[doc = "Getter for the `treeBody` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/treeBody)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `Element`, `TreeBoxObject`*"]
36    pub fn tree_body(this: &TreeBoxObject) -> Option<Element>;
37    # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowHeight)]
38    #[doc = "Getter for the `rowHeight` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowHeight)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
43    pub fn row_height(this: &TreeBoxObject) -> i32;
44    # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = rowWidth)]
45    #[doc = "Getter for the `rowWidth` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowWidth)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
50    pub fn row_width(this: &TreeBoxObject) -> i32;
51    # [wasm_bindgen (structural , method , getter , js_class = "TreeBoxObject" , js_name = horizontalPosition)]
52    #[doc = "Getter for the `horizontalPosition` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/horizontalPosition)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
57    pub fn horizontal_position(this: &TreeBoxObject) -> i32;
58    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = beginUpdateBatch)]
59    #[doc = "The `beginUpdateBatch()` method."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/beginUpdateBatch)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
64    pub fn begin_update_batch(this: &TreeBoxObject);
65    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = clearStyleAndImageCaches)]
66    #[doc = "The `clearStyleAndImageCaches()` method."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/clearStyleAndImageCaches)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
71    pub fn clear_style_and_image_caches(this: &TreeBoxObject);
72    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = endUpdateBatch)]
73    #[doc = "The `endUpdateBatch()` method."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/endUpdateBatch)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
78    pub fn end_update_batch(this: &TreeBoxObject);
79    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = ensureRowIsVisible)]
80    #[doc = "The `ensureRowIsVisible()` method."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/ensureRowIsVisible)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
85    pub fn ensure_row_is_visible(this: &TreeBoxObject, index: i32);
86    #[cfg(feature = "TreeCellInfo")]
87    # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)]
88    #[doc = "The `getCellAt()` method."]
89    #[doc = ""]
90    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeCellInfo`*"]
93    pub fn get_cell_at(this: &TreeBoxObject, x: i32, y: i32) -> Result<TreeCellInfo, JsValue>;
94    # [wasm_bindgen (catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt)]
95    #[doc = "The `getCellAt()` method."]
96    #[doc = ""]
97    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
100    pub fn get_cell_at_with_row_and_column_and_child_elt(
101        this: &TreeBoxObject,
102        x: i32,
103        y: i32,
104        row: &::js_sys::Object,
105        column: &::js_sys::Object,
106        child_elt: &::js_sys::Object,
107    ) -> Result<(), JsValue>;
108    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getFirstVisibleRow)]
109    #[doc = "The `getFirstVisibleRow()` method."]
110    #[doc = ""]
111    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getFirstVisibleRow)"]
112    #[doc = ""]
113    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
114    pub fn get_first_visible_row(this: &TreeBoxObject) -> i32;
115    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getLastVisibleRow)]
116    #[doc = "The `getLastVisibleRow()` method."]
117    #[doc = ""]
118    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getLastVisibleRow)"]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
121    pub fn get_last_visible_row(this: &TreeBoxObject) -> i32;
122    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getPageLength)]
123    #[doc = "The `getPageLength()` method."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getPageLength)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
128    pub fn get_page_length(this: &TreeBoxObject) -> i32;
129    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = getRowAt)]
130    #[doc = "The `getRowAt()` method."]
131    #[doc = ""]
132    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getRowAt)"]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
135    pub fn get_row_at(this: &TreeBoxObject, x: i32, y: i32) -> i32;
136    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidate)]
137    #[doc = "The `invalidate()` method."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidate)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
142    pub fn invalidate(this: &TreeBoxObject);
143    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRange)]
144    #[doc = "The `invalidateRange()` method."]
145    #[doc = ""]
146    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRange)"]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
149    pub fn invalidate_range(this: &TreeBoxObject, start_index: i32, end_index: i32);
150    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = invalidateRow)]
151    #[doc = "The `invalidateRow()` method."]
152    #[doc = ""]
153    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRow)"]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
156    pub fn invalidate_row(this: &TreeBoxObject, index: i32);
157    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = rowCountChanged)]
158    #[doc = "The `rowCountChanged()` method."]
159    #[doc = ""]
160    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowCountChanged)"]
161    #[doc = ""]
162    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
163    pub fn row_count_changed(this: &TreeBoxObject, index: i32, count: i32);
164    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByLines)]
165    #[doc = "The `scrollByLines()` method."]
166    #[doc = ""]
167    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByLines)"]
168    #[doc = ""]
169    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
170    pub fn scroll_by_lines(this: &TreeBoxObject, num_lines: i32);
171    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollByPages)]
172    #[doc = "The `scrollByPages()` method."]
173    #[doc = ""]
174    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByPages)"]
175    #[doc = ""]
176    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
177    pub fn scroll_by_pages(this: &TreeBoxObject, num_pages: i32);
178    # [wasm_bindgen (method , structural , js_class = "TreeBoxObject" , js_name = scrollToRow)]
179    #[doc = "The `scrollToRow()` method."]
180    #[doc = ""]
181    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollToRow)"]
182    #[doc = ""]
183    #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
184    pub fn scroll_to_row(this: &TreeBoxObject, index: i32);
185}