MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Construct

Method Construct

Source/TextEntry.cpp:77–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void 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
94TextEntry::~TextEntry()
95{

Callers

nothing calls this directly

Calls 2

GetStringWidthMethod · 0.80
AddUIControlMethod · 0.80

Tested by

no test coverage detected