MCPcopy Create free account
hub / github.com/ZDoom/Raze / OnSetFocus

Method OnSetFocus

libraries/ZWidget/src/widgets/textedit/textedit.cpp:550–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void TextEdit::OnSetFocus()
551{
552 if (!readonly)
553 timer->Start(500);
554 if (select_all_on_focus_gain)
555 SelectAll();
556 ignore_mouse_events = true;
557 cursor_pos.y = lines.size() - 1;
558 cursor_pos.x = lines[cursor_pos.y].text.length();
559
560 Update();
561
562 if (FuncFocusGained)
563 FuncFocusGained();
564}
565
566void TextEdit::OnLostFocus()
567{

Callers 1

SetFocusMethod · 0.45

Calls 3

lengthMethod · 0.80
StartMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected