redraw redraws the text showing the caret if specified
(caret bool)
| 211 | |
| 212 | // redraw redraws the text showing the caret if specified |
| 213 | func (ed *Edit) redraw(caret bool) { |
| 214 | |
| 215 | line := 0 |
| 216 | if !caret { |
| 217 | line = -1 |
| 218 | } |
| 219 | ed.Label.setTextCaret(ed.text, editMarginX, ed.width, line, ed.col) |
| 220 | } |
| 221 | |
| 222 | // onKey receives subscribed key events |
| 223 | func (ed *Edit) onKey(evname string, ev interface{}) { |
no test coverage detected