Type TextPlacement

type TextPlacement interface {
	// OffsetAt is the offset of the caret position nearest to a window point.
	// ok is false when the field has painted nothing to place a caret in.
	OffsetAt(point Point) (offset int, ok bool)
	// CaretBounds is where the caret was painted, in window coordinates, and
	// false while it is out of view.
	CaretBounds() (Rect, bool)
}

TextPlacement is what a text field that lays its own rows out tells the runtime about them, painted by the last frame. Offsets are byte offsets into the field's Value, which must be the text it paints.