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

Method FindParentPrefix

Common/BaseLayout/BaseLayout.h:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188 private:
189 std::string FindParentPrefix(MyGUI::Widget* _parent)
190 {
191 std::string prefix{_parent->getUserString("BaseLayoutPrefix")};
192 if (!prefix.empty())
193 return prefix;
194 if (_parent->getParent() != nullptr)
195 return FindParentPrefix(_parent->getParent());
196
197 return prefix;
198 }
199
200 void snapToParent(MyGUI::Widget* _child)
201 {

Callers

nothing calls this directly

Calls 3

getUserStringMethod · 0.80
emptyMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected