helper used by reorderChild & add
| 1185 | |
| 1186 | // helper used by reorderChild & add |
| 1187 | void Node::insertChild(Node* child, int z) |
| 1188 | { |
| 1189 | #if AX_ENABLE_GC_FOR_NATIVE_OBJECTS |
| 1190 | auto sEngine = ScriptEngineManager::getInstance()->getScriptEngine(); |
| 1191 | if (sEngine) |
| 1192 | { |
| 1193 | sEngine->retainScriptObject(this, child); |
| 1194 | } |
| 1195 | #endif // AX_ENABLE_GC_FOR_NATIVE_OBJECTS |
| 1196 | _transformUpdated = true; |
| 1197 | _reorderChildDirty = true; |
| 1198 | _children.pushBack(child); |
| 1199 | child->_setLocalZOrder(z); |
| 1200 | } |
| 1201 | |
| 1202 | void Node::reorderChild(Node* child, int zOrder) |
| 1203 | { |
no test coverage detected