| 15 | { |
| 16 | |
| 17 | TextEdit::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 | |
| 29 | TextEdit::~TextEdit() = default; |
| 30 |
nothing calls this directly
no test coverage detected