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

Method addRow

source/ui/controls/ImGuiLayout.cpp:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291std::shared_ptr<LayoutRow> LayoutSection::addRow(Msg labelId, Msg helpId) {
292 std::shared_ptr<LayoutRow> row = std::make_shared<LayoutRow>();
293 if (labelId != Msg::NONE) {
294 row->label = getTranslation(labelId);
295 }
296 if (helpId != Msg::NONE) {
297 row->help = getTranslation(helpId, false);
298 }
299 this->rows.push_back(row);
300 return row;
301}
302
303std::shared_ptr<LayoutTextInputControl> LayoutSection::addTextInputRow(Msg labelId, Msg helpId, BString initialValue, bool readOnly) {
304 std::shared_ptr<LayoutRow> row = this->addRow(labelId, helpId);

Callers 7

addTextInputRowMethod · 0.95
addComboboxRowMethod · 0.95
addCheckboxMethod · 0.95
addTextMethod · 0.95
addSeparatorMethod · 0.95
addButtonMethod · 0.95
ContainersViewMethod · 0.80

Calls 2

getTranslationFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected