MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / addTextInput

Method addTextInput

source/ui/controls/ImGuiLayout.cpp:333–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333std::shared_ptr<LayoutTextInputControl> LayoutRow::addTextInput(BString initialValue, bool readOnly) {
334 std::shared_ptr<LayoutTextInputControl> control = std::make_shared<LayoutTextInputControl>(shared_from_this());
335 if (readOnly) {
336 control->setReadOnly(true);
337 }
338 if (initialValue.length()) {
339 control->setText(initialValue);
340 }
341 this->controls.push_back(control);
342 return control;
343}
344
345void LayoutRow::setHelp(Msg helpId) {
346 this->help = getTranslation(helpId, false);

Callers 2

ContainersViewMethod · 0.80
addTextInputRowMethod · 0.80

Calls 4

setReadOnlyMethod · 0.80
lengthMethod · 0.45
setTextMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected