Begin a new selection at (row, col).
(&mut self, row: u16, col: u16)
| 29 | |
| 30 | /// Begin a new selection at (row, col). |
| 31 | pub fn start(&mut self, row: u16, col: u16) { |
| 32 | self.anchor = Some((row, col)); |
| 33 | self.cursor = Some((row, col)); |
| 34 | self.dragging = true; |
| 35 | } |
| 36 | |
| 37 | /// Update the drag endpoint. |
| 38 | pub fn update(&mut self, row: u16, col: u16) { |
no outgoing calls