MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cleanup

Method cleanup

Source/Node/Node.cpp:621–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void Node::cleanup() {
622 if (_flags.isOff(Node::Cleanup)) {
623 _flags.setOn(Node::Cleanup);
624 post("Cleanup"_slice);
625 _signal = nullptr;
626 ARRAY_START(Node, child, _children) {
627 child->cleanup();
628 }
629 ARRAY_END
630 unschedule();
631 unscheduleUpdate();
632 stopActionInList(_action);
633 if (_updateItem) {
634 _updateItem->renderFuncs = nullptr;
635 _updateItem->scheduledMainFunc = nullptr;
636 _updateItem->scheduledThreadFuncs.clear();
637 }
638 if (_userData) {
639 _userData->clear();
640 }
641 if (_flags.isOn(Node::KeyboardEnabled)) {
642 setKeyboardEnabled(false);
643 }
644 if (_flags.isOn(Node::ControllerEnabled)) {
645 setControllerEnabled(false);
646 }
647 if (_grabber) {
648 _grabber->cleanup();
649 _grabber = nullptr;
650 }
651 _parent = nullptr;
652 Object::cleanup();
653 }
654}
655
656Node* Node::getChildByTag(String tag) {
657 Node* targetNode = nullptr;

Callers 7

removeFromParentMethod · 0.95
generateClipsFunction · 0.45
removeChildMethod · 0.45
ARRAY_STARTFunction · 0.45
grabMethod · 0.45
Director_CleanupFunction · 0.45
node_cleanupFunction · 0.45

Calls 6

postFunction · 0.85
cleanupFunction · 0.85
isOffMethod · 0.80
setOnMethod · 0.80
isOnMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected