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

Method copyTo

forms/textedit.cpp:262–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262sp<Control> TextEdit::copyTo(sp<Control> CopyParent)
263{
264 sp<TextEdit> copy;
265 if (CopyParent)
266 {
267 copy = CopyParent->createChild<TextEdit>(to_ustring(this->text), this->font);
268 }
269 else
270 {
271 copy = mksp<TextEdit>(to_ustring(this->text), this->font);
272 }
273 copy->TextHAlign = this->TextHAlign;
274 copy->TextVAlign = this->TextVAlign;
275 copyControlData(copy);
276 return copy;
277}
278
279void TextEdit::configureSelfFromXml(pugi::xml_node *node)
280{

Callers

nothing calls this directly

Calls 1

to_ustringFunction · 0.85

Tested by

no test coverage detected