web_sys/features/
gen_TreeBoxObject.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 = "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(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(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(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(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(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(
52 method,
53 getter,
54 js_class = "TreeBoxObject",
55 js_name = "horizontalPosition"
56 )]
57 #[doc = "Getter for the `horizontalPosition` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/horizontalPosition)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
62 pub fn horizontal_position(this: &TreeBoxObject) -> i32;
63 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "beginUpdateBatch")]
64 #[doc = "The `beginUpdateBatch()` method."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/beginUpdateBatch)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
69 pub fn begin_update_batch(this: &TreeBoxObject);
70 #[wasm_bindgen(
71 method,
72 js_class = "TreeBoxObject",
73 js_name = "clearStyleAndImageCaches"
74 )]
75 #[doc = "The `clearStyleAndImageCaches()` method."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/clearStyleAndImageCaches)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
80 pub fn clear_style_and_image_caches(this: &TreeBoxObject);
81 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "endUpdateBatch")]
82 #[doc = "The `endUpdateBatch()` method."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/endUpdateBatch)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
87 pub fn end_update_batch(this: &TreeBoxObject);
88 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "ensureRowIsVisible")]
89 #[doc = "The `ensureRowIsVisible()` method."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/ensureRowIsVisible)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
94 pub fn ensure_row_is_visible(this: &TreeBoxObject, index: i32);
95 #[cfg(feature = "TreeCellInfo")]
96 #[wasm_bindgen(catch, method, js_class = "TreeBoxObject", js_name = "getCellAt")]
97 #[doc = "The `getCellAt()` method."]
98 #[doc = ""]
99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeCellInfo`*"]
102 pub fn get_cell_at(this: &TreeBoxObject, x: i32, y: i32) -> Result<TreeCellInfo, JsValue>;
103 #[wasm_bindgen(catch, method, js_class = "TreeBoxObject", js_name = "getCellAt")]
104 #[doc = "The `getCellAt()` method."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
109 pub fn get_cell_at_with_row_and_column_and_child_elt(
110 this: &TreeBoxObject,
111 x: i32,
112 y: i32,
113 row: &::js_sys::Object,
114 column: &::js_sys::Object,
115 child_elt: &::js_sys::Object,
116 ) -> Result<(), JsValue>;
117 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "getFirstVisibleRow")]
118 #[doc = "The `getFirstVisibleRow()` method."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getFirstVisibleRow)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
123 pub fn get_first_visible_row(this: &TreeBoxObject) -> i32;
124 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "getLastVisibleRow")]
125 #[doc = "The `getLastVisibleRow()` method."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getLastVisibleRow)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
130 pub fn get_last_visible_row(this: &TreeBoxObject) -> i32;
131 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "getPageLength")]
132 #[doc = "The `getPageLength()` method."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getPageLength)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
137 pub fn get_page_length(this: &TreeBoxObject) -> i32;
138 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "getRowAt")]
139 #[doc = "The `getRowAt()` method."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getRowAt)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
144 pub fn get_row_at(this: &TreeBoxObject, x: i32, y: i32) -> i32;
145 #[wasm_bindgen(method, js_class = "TreeBoxObject")]
146 #[doc = "The `invalidate()` method."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidate)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
151 pub fn invalidate(this: &TreeBoxObject);
152 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "invalidateRange")]
153 #[doc = "The `invalidateRange()` method."]
154 #[doc = ""]
155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRange)"]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
158 pub fn invalidate_range(this: &TreeBoxObject, start_index: i32, end_index: i32);
159 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "invalidateRow")]
160 #[doc = "The `invalidateRow()` method."]
161 #[doc = ""]
162 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRow)"]
163 #[doc = ""]
164 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
165 pub fn invalidate_row(this: &TreeBoxObject, index: i32);
166 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "rowCountChanged")]
167 #[doc = "The `rowCountChanged()` method."]
168 #[doc = ""]
169 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowCountChanged)"]
170 #[doc = ""]
171 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
172 pub fn row_count_changed(this: &TreeBoxObject, index: i32, count: i32);
173 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "scrollByLines")]
174 #[doc = "The `scrollByLines()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByLines)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
179 pub fn scroll_by_lines(this: &TreeBoxObject, num_lines: i32);
180 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "scrollByPages")]
181 #[doc = "The `scrollByPages()` method."]
182 #[doc = ""]
183 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByPages)"]
184 #[doc = ""]
185 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
186 pub fn scroll_by_pages(this: &TreeBoxObject, num_pages: i32);
187 #[wasm_bindgen(method, js_class = "TreeBoxObject", js_name = "scrollToRow")]
188 #[doc = "The `scrollToRow()` method."]
189 #[doc = ""]
190 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollToRow)"]
191 #[doc = ""]
192 #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"]
193 pub fn scroll_to_row(this: &TreeBoxObject, index: i32);
194}