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

Method TextEdit

forms/textedit.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17TextEdit::TextEdit(const UString &Text, sp<BitmapFont> font)
18 : Control(), caretDraw(false), caretTimer(0), text(to_u32string(Text)), cursor("*"), font(font),
19 editing(false), SelectionStart(Text.length()), TextHAlign(HorizontalAlignment::Left),
20 TextVAlign(VerticalAlignment::Centre)
21{
22 isClickable = true;
23 if (font)
24 {
25 palette = font->getPalette();
26 }
27}
28
29TextEdit::~TextEdit() = default;
30

Callers

nothing calls this directly

Calls 2

to_u32stringFunction · 0.85
getPaletteMethod · 0.45

Tested by

no test coverage detected