Get rectangles, and their corresponding line indices, representing the selected portions of text.
(&self)
| 481 | /// Get rectangles, and their corresponding line indices, representing the selected portions of |
| 482 | /// text. |
| 483 | pub fn selection_geometry(&self) -> Vec<(BoundingBox, usize)> { |
| 484 | // We do not check `self.show_cursor` here, as the IME handling code collapses the |
| 485 | // selection to a caret in that case. |
| 486 | self.selection.geometry(&self.layout) |
| 487 | } |
| 488 | |
| 489 | /// Invoke a callback with each rectangle representing the selected portions of text, and the |
| 490 | /// indices of the lines to which they belong. |
nothing calls this directly
no outgoing calls
no test coverage detected