| 751 | } |
| 752 | |
| 753 | bool TreeParent::DetachChild(lua::ImguiHandle child) |
| 754 | { |
| 755 | auto it = Children.find(child.Handle); |
| 756 | if (it != Children.end()) { |
| 757 | Children.erase(it); |
| 758 | auto ele = Manager->GetRenderable(child.Handle); |
| 759 | if (ele != nullptr) { |
| 760 | ele->Parent = InvalidHandle; |
| 761 | return true; |
| 762 | } else { |
| 763 | return false; |
| 764 | } |
| 765 | } else { |
| 766 | return false; |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | bool TreeParent::AttachChild(lua::ImguiHandle child) |
| 771 | { |
nothing calls this directly
no test coverage detected