MCPcopy Create free account
hub / github.com/GCWing/BitFun / begin_mouse_selection

Method begin_mouse_selection

src/apps/cli/src/ui/chat/mouse.rs:179–190  ·  view source on GitHub ↗
(&mut self, column: u16, row: u16)

Source from the content-addressed store, hash-verified

177 }
178
179 pub fn begin_mouse_selection(&mut self, column: u16, row: u16) -> bool {
180 let Some(point) = self.map_mouse_to_selection_point(column, row, false) else {
181 self.clear_mouse_selection_state();
182 return false;
183 };
184
185 self.selection_anchor = Some(point);
186 self.selection_focus = Some(point);
187 self.selection_mouse_down = Some((column, row));
188 self.selection_dragged = false;
189 true
190 }
191
192 pub fn update_mouse_selection(&mut self, column: u16, row: u16) -> bool {
193 if self.selection_mouse_down.is_none() {

Callers 1

handle_non_key_eventMethod · 0.80

Tested by

no test coverage detected