MCPcopy Create free account
hub / github.com/Norbyte/bg3se / RemoveChild

Method RemoveChild

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:742–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740
741
742bool TreeParent::RemoveChild(lua::ImguiHandle child)
743{
744 auto it = Children.find(child.Handle);
745 if (it != Children.end()) {
746 Children.erase(it);
747 return Manager->DestroyRenderable(child.Handle);
748 } else {
749 return false;
750 }
751}
752
753bool TreeParent::DetachChild(lua::ImguiHandle child)
754{

Callers 1

DestroyMethod · 0.80

Calls 4

DestroyRenderableMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected