Expand description
Selecting the read-only text inside a
SelectionContainer.
A container keeps a SelectionRegistrar. Every Text composed inside it
registers what it shows and where its content sits in the window, and draws
its part of the selection behind its glyphs. The container turns pointer
and key input into one TextSelection across those texts, in the order a
person reads them.
Structsยง
- Selection
Edge - One end of a selection: a byte offset into one registered text.
- Selection
Registrar - The texts of one
SelectionContainerand the selection across them. - Text
Selection - A selection across the texts of one container.
anchorstays where the gesture started andfocusfollows the pointer, so either may come first in reading order.