| 75 | } |
| 76 | |
| 77 | void TextEntry::Construct(ITextEntryListener* owner, const char* name, int x, int y, int charWidth) |
| 78 | { |
| 79 | mCharWidth = charWidth; |
| 80 | mListener = owner; |
| 81 | |
| 82 | UpdateDisplayString(); |
| 83 | |
| 84 | SetName(name); |
| 85 | mLabelSize = gFont.GetStringWidth(name, 13) + 3; |
| 86 | SetPosition(x, y); |
| 87 | assert(owner); |
| 88 | IDrawableModule* module = dynamic_cast<IDrawableModule*>(owner); |
| 89 | if (module) |
| 90 | module->AddUIControl(this); |
| 91 | SetParent(dynamic_cast<IClickable*>(owner)); |
| 92 | } |
| 93 | |
| 94 | TextEntry::~TextEntry() |
| 95 | { |
nothing calls this directly
no test coverage detected