SetSource initializes the underlying data source for the Text. This must be done before invoking any other methods on Text.
(source textSource)
| 123 | // SetSource initializes the underlying data source for the Text. This |
| 124 | // must be done before invoking any other methods on Text. |
| 125 | func (e *textView) SetSource(source textSource) { |
| 126 | e.rr = source |
| 127 | e.invalidate() |
| 128 | e.seekCursor = 0 |
| 129 | } |
| 130 | |
| 131 | // ReadRuneAt reads the rune starting at the given byte offset, if any. |
| 132 | func (e *textView) ReadRuneAt(off int64) (rune, int, error) { |
no test coverage detected