MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / addMultiTextbox

Method addMultiTextbox

Source/Falcor/Utils/UI/Gui.cpp:810–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810bool GuiImpl::addMultiTextbox(const char label[], const std::vector<std::string>& textLabels, std::vector<std::string>& textEntries)
811{
812 static uint32_t sIdOffset = 0; // TODO: REMOVEGLOBAL
813 bool result = false;
814
815 for (uint32_t i = 0; i < textEntries.size(); ++i)
816 {
817 result |= addTextbox(std::string(textLabels[i] + "##" + std::to_string(sIdOffset)).c_str(), textEntries[i]);
818 }
819
820 return addButton(label) | result;
821}
822
823void GuiImpl::addTooltip(const char tip[], bool sameLine)
824{

Callers 1

multiTextboxMethod · 0.80

Calls 3

stringFunction · 0.85
to_stringFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected