MCPcopy Index your code
hub / github.com/g3n/engine / redraw

Method redraw

gui/edit.go:213–220  ·  view source on GitHub ↗

redraw redraws the text showing the caret if specified

(caret bool)

Source from the content-addressed store, hash-verified

211
212// redraw redraws the text showing the caret if specified
213func (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
223func (ed *Edit) onKey(evname string, ev interface{}) {

Callers 11

SetFontSizeMethod · 0.95
CursorPosMethod · 0.95
CursorLeftMethod · 0.95
CursorRightMethod · 0.95
CursorBackMethod · 0.95
CursorHomeMethod · 0.95
CursorEndMethod · 0.95
CursorDeleteMethod · 0.95
CursorInputMethod · 0.95
blinkMethod · 0.95
applyStyleMethod · 0.95

Calls 1

setTextCaretMethod · 0.80

Tested by

no test coverage detected