MCPcopy Create free account
hub / github.com/Kethku/Pando / selection_geometry

Method selection_geometry

aspen/src/components/editor.rs:483–487  ·  view source on GitHub ↗

Get rectangles, and their corresponding line indices, representing the selected portions of text.

(&self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected