MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setText

Method setText

forms/textedit.cpp:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220UString TextEdit::getText() const { return to_ustring(text); }
221
222void TextEdit::setText(const UString &Text)
223{
224 text = to_u32string(Text);
225 SelectionStart = text.length();
226 raiseEvent(FormEventType::TextChanged);
227}
228
229void TextEdit::setCursor(const UString &cursor)
230{

Callers

nothing calls this directly

Calls 1

to_u32stringFunction · 0.85

Tested by

no test coverage detected