MCPcopy Create free account
hub / github.com/MyGUI/mygui / getPath

Method getPath

UnitTests/UnitTest_TreeControl/DemoKeeper.cpp:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196MyGUI::UString SampleLayout::getPath(MyGUI::TreeControl::Node* pNode) const
197{
198 if (!pNode || pNode == mpResourcesTree->getRoot())
199 return {};
200
201 MyGUI::UString strPath;
202 while (pNode->getParent() != mpResourcesTree->getRoot())
203 {
204 strPath = pNode->getText() + "/" + strPath;
205 pNode = pNode->getParent();
206 }
207
208 return strPath;
209}
210
211namespace demo
212{

Callers

nothing calls this directly

Calls 3

getRootMethod · 0.45
getParentMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected