Reset resets the widget back to empty content.
()
| 78 | |
| 79 | // Reset resets the widget back to empty content. |
| 80 | func (t *Text) Reset() { |
| 81 | t.mu.Lock() |
| 82 | defer t.mu.Unlock() |
| 83 | t.reset() |
| 84 | } |
| 85 | |
| 86 | // reset implements Reset, caller must hold t.mu. |
| 87 | func (t *Text) reset() { |