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